diff options
author | Nisar Sayed <Nisar.Sayed@microchip.com> | 2017-09-21 02:36:38 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-21 15:22:53 -0700 |
commit | e365280521029c9366bab038915274ddaa1b7195 (patch) | |
tree | c611008b6d41e0305fe81b866822bbf054a07bcd /drivers | |
parent | c077682282dd34c75e8477c22dffe7c9aebc6e98 (diff) | |
download | linux-e365280521029c9366bab038915274ddaa1b7195.tar.gz linux-e365280521029c9366bab038915274ddaa1b7195.tar.bz2 linux-e365280521029c9366bab038915274ddaa1b7195.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/usb/lan78xx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c index f8c63eec8353..0161f77641fa 100644 --- a/drivers/net/usb/lan78xx.c +++ b/drivers/net/usb/lan78xx.c @@ -2449,7 +2449,6 @@ static int lan78xx_reset(struct lan78xx_net *dev) /* LAN7801 only has RGMII mode */ if (dev->chipid == ID_REV_CHIP_ID_7801_) buf &= ~MAC_CR_GMII_EN_; - buf |= MAC_CR_AUTO_DUPLEX_ | MAC_CR_AUTO_SPEED_; ret = lan78xx_write_reg(dev, MAC_CR, buf); ret = lan78xx_read_reg(dev, MAC_TX, &buf); |