diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-02-26 13:40:16 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-03-02 08:10:51 +0100 |
commit | d64a4e22cea8144f01a9b15c9ab518a4903afa76 (patch) | |
tree | af2d3fcd965b305d51540db3feff9bf2b343c7ce /drivers/net | |
parent | ba08e336c85196affabb5983768c6b5996c6bb00 (diff) | |
download | barebox-d64a4e22cea8144f01a9b15c9ab518a4903afa76.tar.gz barebox-d64a4e22cea8144f01a9b15c9ab518a4903afa76.tar.xz |
net: designware: eqos: remove left-over PHY quirk work around
The dummy read was a left over from an abandoned merge with the existing
support for the SoCFPGA variant of the Designware MAC. It doesn't exist
in either the U-Boot or kernel drivers for the EQOS, thus drop it.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/designware_eqos.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/designware_eqos.c b/drivers/net/designware_eqos.c index 4ae07fe059..acb4b95546 100644 --- a/drivers/net/designware_eqos.c +++ b/drivers/net/designware_eqos.c @@ -255,14 +255,10 @@ static int eqos_mdio_write(struct mii_bus *bus, int addr, int reg, u16 data) udelay(eqos->ops->mdio_wait_us); ret = eqos_mdio_wait_idle(eqos); - if (ret) { + if (ret) dev_err(&bus->dev, "MDIO read didn't complete\n"); - return ret; - } - /* Needed as a fix for ST-Phy */ - eqos_mdio_read(bus, addr, reg); - return 0; + return ret; } |