OSDN Git Service

net: phy: bcm54140: use genphy_soft_reset()
authorMichael Walle <michael@walle.cc>
Tue, 28 Apr 2020 23:06:56 +0000 (01:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 03:55:49 +0000 (20:55 -0700)
Set the .soft_reset() op to be sure there will be a reset even if there
is no hardware reset line registered.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm54140.c

index c009ac2..18d1e79 100644 (file)
@@ -862,6 +862,7 @@ static struct phy_driver bcm54140_drivers[] = {
                .probe          = bcm54140_probe,
                .suspend        = genphy_suspend,
                .resume         = genphy_resume,
+               .soft_reset     = genphy_soft_reset,
                .get_tunable    = bcm54140_get_tunable,
                .set_tunable    = bcm54140_set_tunable,
        },