]> git.baikalelectronics.ru Git - kernel.git/commit
lan78xx: Set ASD in MAC_CR when EEE is enabled.
authorRaghuram Chary J <raghuramchary.jallipalli@microchip.com>
Fri, 23 Mar 2018 10:18:08 +0000 (15:48 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 01:06:49 +0000 (21:06 -0400)
commit7288e911ab15b0c4d476abc5826c2aa1ea946427
treead222617d500fafe629291dd4bf2764763952fad
parentd2f27f0ccc0d4a390f039c64d1771ca547a8ec51
lan78xx: Set ASD in MAC_CR when EEE is enabled.

Description:
EEE does not work with lan7800 when AutoSpeed is not set.
(This can happen when EEPROM is not populated or configured incorrectly)

Root-Cause:
When EEE is enabled, the mac config register ASD is not set
i.e. in default state, causing EEE fail.

Fix:
Set the register when eeprom is not present.

Fixes: 1b266e200e31 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Signed-off-by: Raghuram Chary J <raghuramchary.jallipalli@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c