projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3704eb6
)
net: stmicro: fix LS field mask in EEE configuration
author
jpinto
<
[email protected]
>
Fri, 20 Jan 2017 16:00:26 +0000
(16:00 +0000)
committer
David S. Miller
<
[email protected]
>
Sun, 22 Jan 2017 21:47:36 +0000
(16:47 -0500)
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 <
[email protected]
>
Reported-By: Rayagond Kokatanur <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
b/drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
index 834f40f082084912339ddf008ef65539a2508ba4..202216cd6789176e1cf9164cfb3faf6b58c0ba89 100644
(file)
--- a/
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
+++ b/
drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c
@@
-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)
{
void __iomem *ioaddr = hw->pcsr;
- int value = ((tw & 0xffff)) | ((ls & 0x
7
ff) << 16);
+ int value = ((tw & 0xffff)) | ((ls & 0x
3
ff) << 16);
/* Program the timers in the LPI timer control register:
* LS: minimum time (ms) for which the link