net: phy: bcm7xxx: re-advertise all supported modes out of suspend
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 14 Aug 2014 23:52:52 +0000 (16:52 -0700)
committerDavid S. Miller <davem@greenl8ke.davemloft.net>
Sun, 17 Aug 2014 02:13:33 +0000 (19:13 -0700)
commit4fd14e0b4a4fdb57a2b96659cb8adae255cd225d
tree9a46c9a1c1c83425a3f425d5d9e475a97a8e0979
parent16466f4284154311f163a58b77379eb186274f87
net: phy: bcm7xxx: re-advertise all supported modes out of suspend

The BCM7xxx internal Gigabit PHYs on 28nm process platforms come out
reset without any half-duplex or "hub" compatible advertised modes,
which was causing auto-negotiation issues coming out of S3
suspend/resume, we just could not establish a link with a half-duplex
only link partner.

Make sure that the resume function properly re-configures the PHY device
to advertise all supported modes.

Fixes: b560a58c45c6 ("net: phy: add Broadcom BCM7xxx internal PHY driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@greenl8ke.davemloft.net>
drivers/net/phy/bcm7xxx.c