]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: correctly suspend and resume PHY device
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 11 Aug 2014 21:50:43 +0000 (14:50 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Aug 2014 22:10:11 +0000 (15:10 -0700)
commit401f378cbba1022ceeb98b42105c36e3b0221656
tree02b8332bbbfdc0c0797c2d7296a4fdd2a2bf93eb
parent848237e225c241c30fb7a911564a9d43a6f99e35
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: d2dac18da144 ("net: bcmgenet: add suspend/resume callbacks")
Fixes: 390dff99da874 ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c