lkml.org 
[lkml]   [2020]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    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
    \
     
     \ /
      Last update: 2020-05-12 12:46    [W:3.948 / U:0.460 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site