Commit f4ec6064 authored by jpinto's avatar jpinto Committed by David S. Miller

net: stmicro: fix LS field mask in EEE configuration

This patch fixes the LS mask when setting EEE timer.
LS field is 10 bits long and not 11 as currently.
Signed-off-by: default avatarJoao Pinto <jpinto@synopsys.com>
Reported-By: default avatarRayagond Kokatanur <rayagond@vayavyalabs.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3704eb6f
...@@ -184,7 +184,7 @@ static void dwmac4_set_eee_pls(struct mac_device_info *hw, int link) ...@@ -184,7 +184,7 @@ static void dwmac4_set_eee_pls(struct mac_device_info *hw, int link)
static void dwmac4_set_eee_timer(struct mac_device_info *hw, int ls, int tw) static void dwmac4_set_eee_timer(struct mac_device_info *hw, int ls, int tw)
{ {
void __iomem *ioaddr = hw->pcsr; void __iomem *ioaddr = hw->pcsr;
int value = ((tw & 0xffff)) | ((ls & 0x7ff) << 16); int value = ((tw & 0xffff)) | ((ls & 0x3ff) << 16);
/* Program the timers in the LPI timer control register: /* Program the timers in the LPI timer control register:
* LS: minimum time (ms) for which the link * LS: minimum time (ms) for which the link
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment