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)
commite69647a19c870c2f919e4d5023af8a515e8ef25f
treead222617d500fafe629291dd4bf2764763952fad
parentbc58a1baf2a97838a422ce4e75180c4b680e7a9b
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: 55d7de9de6c3 ("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