net: phy: bcm7xxx: define soft_reset for 40nm EPHY
authorDoug Berger <opendmb@gmail.com>
Wed, 16 Oct 2019 23:06:30 +0000 (16:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Oct 2019 17:00:07 +0000 (10:00 -0700)
commitfe586b823372a9f43f90e2c6aa0573992ce7ccb7
tree041b5a9a28d70ea69bbdc89c8522fca5198c445b
parent7de48402faa32298c3551ea32c76ccb4f9d3025d
net: phy: bcm7xxx: define soft_reset for 40nm EPHY

The internal 40nm EPHYs use a "Workaround for putting the PHY in
IDDQ mode." These PHYs require a soft reset to restore functionality
after they are powered back up.

This commit defines the soft_reset function to use genphy_soft_reset
during phy_init_hw to accommodate this.

Fixes: 6e2d85ec0559 ("net: phy: Stop with excessive soft reset")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/bcm7xxx.c