diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2014-08-12 01:50:43 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-08-12 02:10:11 +0400 |
commit | cc013fb4889892cd6058cfb122c43aeea7d930e8 (patch) | |
tree | 02b8332bbbfdc0c0797c2d7296a4fdd2a2bf93eb /drivers/net/ethernet/broadcom/genet/bcmmii.c | |
parent | e4a60a93c4a6e7dd4e3e82736b932375598a26fd (diff) | |
download | linux-cc013fb4889892cd6058cfb122c43aeea7d930e8.tar.xz |
net: bcmgenet: correctly suspend and resume PHY device
Make sure that we properly suspend and resume the PHY device when we
enter low power modes. We had two calls to bcmgenet_mii_reset() which
will issue a software-reset to the PHY without using the PHY library,
get rid of them since they are completely bogus and mess up with the PHY
library state. Make sure that we reset the PHY library cached values
(link, pause and duplex) to allow the link adjustment callback to be
invoked when needed.
Fixes: b6e978e50444 ("net: bcmgenet: add suspend/resume callbacks")
Fixes: 1c1008c793fa4 ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/genet/bcmmii.c')
0 files changed, 0 insertions, 0 deletions