Messages in this thread Patch in this message | | | Date | Tue, 12 May 2020 18:46:01 +0800 | From | Jisheng Zhang <> | Subject | [PATCH] net: phy: realtek: clear interrupt during init for rtl8211f |
| |
The PHY Register Accessible Interrupt is enabled by default, so there's such an interrupt during init. In PHY POLL mode case, the INTB/PMEB pin is alway active, it is not good. Clear the interrupt by calling rtl8211f_ack_interrupt().
Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> --- drivers/net/phy/realtek.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c index 2d99e9de6ee1..398607268a3c 100644 --- a/drivers/net/phy/realtek.c +++ b/drivers/net/phy/realtek.c @@ -179,6 +179,10 @@ static int rtl8211f_config_init(struct phy_device *phydev) u16 val_txdly, val_rxdly; int ret; + ret = rtl8211f_ack_interrupt(phydev); + if (ret < 0) + return ret; + switch (phydev->interface) { case PHY_INTERFACE_MODE_RGMII: val_txdly = 0; -- 2.26.2
| |