OSDN Git Service

net: phy: broadcom: Wire suspend/resume for BCM54810
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 19 Feb 2020 20:00:49 +0000 (12:00 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Feb 2020 00:36:48 +0000 (16:36 -0800)
commitfe26821fa614d1d9dbfa48839b5a357d2d8b6f7d
treee45565eeda14889b4a89fb3a174292001feed31c
parentcb64da3a5b60b7e9312ade2d6892a1fe657d23b1
net: phy: broadcom: Wire suspend/resume for BCM54810

The BCM54810 PHY can use the standard BMCR Power down suspend, but needs
a custom resume routine which first clear the Power down bit, and then
re-initializes the PHY. While in low-power mode, the PHY only accepts
writes to the BMCR register. The datasheet clearly says it:

Reads or writes to any MII register other than MII Control register
(address 00h) while the device is in the standby power-down mode may
cause unpredictable results.

Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/broadcom.c