net: bcmgenet: power down internal phy if open or resume fails
authorDoug Berger <opendmb@gmail.com>
Fri, 10 Mar 2017 00:58:46 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:39:01 +0000 (18:39 -0800)
commit7627409cc4970e8c8b9de6945ad86a575290a94e
tree93bbc395d16f65147b9b928cd058ee2387ebdab4
parenteca4bad73409aedc6ff22f823c18b67a4f08c851
net: bcmgenet: power down internal phy if open or resume fails

Since the internal PHY is powered up during the open and resume
functions it should be powered back down if the functions fail.

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c