]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Power up the internal PHY before probing the MII
authorDoug Berger <opendmb@gmail.com>
Fri, 10 Mar 2017 00:58:48 +0000 (16:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Mar 2017 02:39:01 +0000 (18:39 -0800)
commit57a615f34404e30eeb62710bbb2e79e190232ca8
treeb849534e60ebbf0678855d9f654ffc77f877d373
parentcc41eada78bf41365abac22f94991f998051f34d
net: bcmgenet: Power up the internal PHY before probing the MII

When using the internal PHY it must be powered up when the MII is probed
or the PHY will not be detected.  Since the PHY is powered up at reset
this has not been a problem.  However, when the kernel is restarted with
kexec the PHY will likely be powered down when the kernel starts so it
will not be detected and the Ethernet link will not be established.

This commit explicitly powers up the internal PHY when the GENET driver
is probed to correct this behavior.

Fixes: 83c070ed8c89 ("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