Skip to content

Commit d930a74

Browse files
committed
net: phy: as21x: add mdc fast timing
1 parent 5b9607f commit d930a74

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/net/phy/as21xxx.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,13 @@ static int aeon_firmware_boot(struct phy_device *phydev, const u8 *data,
349349
VEND1_GLB_CPU_CTRL_MASK, AEON_CPU_CTRL_FW_START);
350350
}
351351

352+
static void aeon_set_fast_mdc_timing(struct phy_device *phydev)
353+
{
354+
phy_write_mmd(phydev, MDIO_MMD_VEND1, 0x53, 0xFFFF);
355+
phy_write_mmd(phydev, MDIO_MMD_VEND1, 0x54, 0xFFFF);
356+
phy_write_mmd(phydev, MDIO_MMD_VEND1, 0x55, 0xFFFF);
357+
}
358+
352359
static int aeon_firmware_load(struct phy_device *phydev)
353360
{
354361
struct device *dev = &phydev->mdio.dev;
@@ -933,6 +940,8 @@ static int as21xxx_match_phy_device(struct phy_device *phydev,
933940

934941
mutex_init(&priv->ipc_lock);
935942

943+
aeon_set_fast_mdc_timing(phydev);
944+
936945
ret = aeon_firmware_load(phydev);
937946
if (ret)
938947
goto out;

0 commit comments

Comments
 (0)