]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 17 Jan 2018 17:55:33 +0000 (12:55 -0500)
commitd3ecf7891a2b3dce47a961481e77b3f41c468290
treec155d1614e87b00d30ed3cd1bc174e97d0d91cde
parent3c84a327df800c2eb5040b9198d865c9fbd333c0
net: bcmgenet: Power up the internal PHY before probing the MII

[ Upstream commit 6be371b053dc86f11465cc1abce2e99bda0a0574 ]

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: 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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/net/ethernet/broadcom/genet/bcmgenet.c