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)
commit4a2947e32ea9ca2bc36d68022b7d7b1014dca18f
tree46054ef8f49526b1744873ae61ce82e31eb6ba37
parent0ce66d4f70d3bcfb67c89f473e76e7cf0a01288f
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: 2399d6143f85 ("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