]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd kernels
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 20 Oct 2016 16:32:19 +0000 (09:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Oct 2016 18:43:50 +0000 (14:43 -0400)
commitd4f6ce35107c796eab341e83f01a29c68f6817c3
tree51fc96f1700fb5fda3537b75648af7bf7be3d8cb
parenta438b4793c37e0c49cc04654fb5b48856e6bb913
net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd kernels

For a kernel that is being kexec'd we re-enable the integrated GPHY in
order for the subsequent MDIO bus scan to succeed and properly bind to
the bcm7xxx PHY driver. If we did not do that, the GPHY would be shut
down by the time the MDIO driver is probing the bus, and it would fail
to read the correct PHY OUI and therefore bind to an appropriate PHY
driver. Later on, this would cause DSA not to be able to successfully
attach to the PHY, and the interface would not be created at all.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c