lkml.org 
[lkml]   [2020]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 4.19 131/639] net: phy: micrel: set soft_reset callback to genphy_soft_reset for KSZ9031
    Date
    From: Heiner Kallweit <hkallweit1@gmail.com>

    [ Upstream commit 1d16073a326891c2a964e4cb95bc18fbcafb5f74 ]

    So far genphy_soft_reset was used automatically if the PHY driver
    didn't implement the soft_reset callback. This changed with the
    mentioned commit and broke KSZ9031. To fix this configure the
    KSZ9031 PHY driver to use genphy_soft_reset.

    Fixes: 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
    Reported-by: Tony Lindgren <tony@atomide.com>
    Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
    Tested-by: Tony Lindgren <tony@atomide.com>
    Tested-by: Sekhar Nori <nsekhar@ti.com>
    Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/phy/micrel.c | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
    index 05a6ae32ff652..b4c67c3a928b5 100644
    --- a/drivers/net/phy/micrel.c
    +++ b/drivers/net/phy/micrel.c
    @@ -977,6 +977,7 @@ static struct phy_driver ksphy_driver[] = {
    .driver_data = &ksz9021_type,
    .probe = kszphy_probe,
    .config_init = ksz9031_config_init,
    + .soft_reset = genphy_soft_reset,
    .read_status = ksz9031_read_status,
    .ack_interrupt = kszphy_ack_interrupt,
    .config_intr = kszphy_config_intr,
    --
    2.20.1


    \
     
     \ /
      Last update: 2020-01-24 12:07    [W:2.395 / U:0.316 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site