This patch fixes the LS mask when setting EEE timer.
LS field is 10 bits long and not 11 as currently.
Signed-off-by: Joao Pinto <redacted>
Reported-By: Rayagond Kokatanur <redacted>
---
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -184,7 +184,7 @@ static void dwmac4_set_eee_pls(struct mac_device_info *hw, int link)staticvoiddwmac4_set_eee_timer(structmac_device_info*hw,intls,inttw){void__iomem*ioaddr=hw->pcsr;-intvalue=((tw&0xffff))|((ls&0x7ff)<<16);+intvalue=((tw&0xffff))|((ls&0x3ff)<<16);/* Program the timers in the LPI timer control register:*LS:minimumtime(ms)forwhichthelink
This patch fixes the LS mask when setting EEE timer.
LS field is 10 bits long and not 11 as currently.
Signed-off-by: Joao Pinto <redacted>
Reported-By: Rayagond Kokatanur <redacted>
Please indicate the appropriate target tree of your patch in the
subject line just like all other developers on this list do, don't
make me guess.
This time I figured out that this is meant for the net-next tree,
but I will not guess next time, I will just reject your patch
instead.
Thanks.
Acked-by:Rayagond Kokatanur [off-list ref]
On Fri, Jan 20, 2017 at 9:30 PM, Joao Pinto [off-list ref] wrote:
quoted hunk
This patch fixes the LS mask when setting EEE timer.
LS field is 10 bits long and not 11 as currently.
Signed-off-by: Joao Pinto <redacted>
Reported-By: Rayagond Kokatanur <redacted>
---
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -184,7 +184,7 @@ static void dwmac4_set_eee_pls(struct mac_device_info *hw, int link)staticvoiddwmac4_set_eee_timer(structmac_device_info*hw,intls,inttw){void__iomem*ioaddr=hw->pcsr;-intvalue=((tw&0xffff))|((ls&0x7ff)<<16);+intvalue=((tw&0xffff))|((ls&0x3ff)<<16);/* Program the timers in the LPI timer control register:*LS:minimumtime(ms)forwhichthelink--
This patch fixes the LS mask when setting EEE timer.
LS field is 10 bits long and not 11 as currently.
Signed-off-by: Joao Pinto <redacted>
Reported-By: Rayagond Kokatanur <redacted>
Please indicate the appropriate target tree of your patch in the
subject line just like all other developers on this list do, don't
make me guess.
Sorry, I will follow that rule also of course.
This time I figured out that this is meant for the net-next tree,
but I will not guess next time, I will just reject your patch
instead.
Thanks.