Skip to content

Commit 642bc17

Browse files
committed
Revert "net: phy: as21: try to fix phy on bpi-r4pro"
This reverts commit 0840f0f.
1 parent 2dc8802 commit 642bc17

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

drivers/net/phy/as21xxx.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -294,19 +294,6 @@ static struct as21xxx_led_pattern_info as21xxx_led_supported_pattern[] = {
294294
}
295295
};
296296

297-
static void aeon_mdio_patch(struct phy_device *phydev)
298-
{
299-
struct device *dev = &phydev->mdio.dev;
300-
struct mii_bus *bus = phydev->mdio.bus;
301-
if (!bus) {
302-
dev_err(dev, "MDIO bus is NULL\r\n");
303-
return;
304-
}
305-
mutex_lock(&bus->mdio_lock);
306-
__mdiobus_c45_write(bus, 30, 0x1, 0x1, 0x1);
307-
mutex_unlock(&bus->mdio_lock);
308-
}
309-
310297
static int aeon_firmware_boot(struct phy_device *phydev, const u8 *data,
311298
size_t size)
312299
{
@@ -959,7 +946,6 @@ static int as21xxx_match_phy_device(struct phy_device *phydev,
959946
// return ret;
960947

961948
phydev_err(phydev, "DEBUG %s:%d\n", __func__,__LINE__);
962-
aeon_mdio_patch(phydev);
963949
out:
964950
mutex_destroy(&priv->ipc_lock);
965951
kfree(priv);

0 commit comments

Comments
 (0)