]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: Do not rely on kexec_in_progress
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 21 Oct 2016 21:21:56 +0000 (14:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 22 Oct 2016 20:17:53 +0000 (16:17 -0400)
commita35f46fe6038eb06bf8500913580830b2b35f51d
tree46054ef8f49526b1744873ae61ce82e31eb6ba37
parent0e3471e3c688366d9556644651fb987b10b502ef
net: dsa: bcm_sf2: Do not rely on kexec_in_progress

After discussing with Eric, it turns out that, while using
kexec_in_progress is a nice optimization, which prevents us from always
powering on the integrated PHY, let's just turn it on in the shutdown
path.

This removes a dependency on kexec_in_progress which, according to Eric
should not be used by modules

Fixes: d4f6ce35107c ("net: dsa: bcm_sf2: Prevent GPHY shutdown for kexec'd kernels")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c