lan78xx: Use default values loaded from EEPROM/OTP after reset
authorNisar Sayed <Nisar.Sayed@microchip.com>
Wed, 20 Sep 2017 21:06:38 +0000 (02:36 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Sep 2017 22:22:53 +0000 (15:22 -0700)
commite365280521029c9366bab038915274ddaa1b7195
treec611008b6d41e0305fe81b866822bbf054a07bcd
parentc077682282dd34c75e8477c22dffe7c9aebc6e98
lan78xx: Use default values loaded from EEPROM/OTP after reset

Use default value of auto duplex and auto speed values loaded
from EEPROM/OTP after reset. The LAN78xx allows platform
configurations to be loaded from EEPROM/OTP.
Ex: When external phy is connected, the MAC can be configured to
have correct auto speed, auto duplex, auto polarity configured
from the EEPROM/OTP.

Fixes: 55d7de9de6c3 ("Microchip's LAN7800 family USB 2/3 to 10/100/1000 Ethernet device driver")
Signed-off-by: Nisar Sayed <Nisar.Sayed@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c