diff options
author | David S. Miller <davem@davemloft.net> | 2016-10-22 16:17:54 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-22 16:17:54 -0400 |
commit | 860e0217fcc9c52013d2dde0b5953fdc95276fc1 (patch) | |
tree | 46054ef8f49526b1744873ae61ce82e31eb6ba37 | |
parent | 2a73306b6096fafd5c2ae06ded1f92bbacb39df2 (diff) | |
parent | 4a2947e32ea9ca2bc36d68022b7d7b1014dca18f (diff) |
Merge branch 'dsa-bcm_sf2-do-not-rely-on-kexec_in_progress'
Florian Fainelli says:
====================
net: dsa: bcm_sf2: Do not rely on kexec_in_progress
These are the two patches following the discussing we had on kexec_in_progress.
Feel free to apply or discard them, thanks!
====================
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/dsa/bcm_sf2.c | 5 | ||||
-rw-r--r-- | kernel/kexec_core.c | 1 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index 077a24541584..e3ee27ce13dd 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c | |||
@@ -30,7 +30,6 @@ | |||
30 | #include <linux/etherdevice.h> | 30 | #include <linux/etherdevice.h> |
31 | #include <net/switchdev.h> | 31 | #include <net/switchdev.h> |
32 | #include <linux/platform_data/b53.h> | 32 | #include <linux/platform_data/b53.h> |
33 | #include <linux/kexec.h> | ||
34 | 33 | ||
35 | #include "bcm_sf2.h" | 34 | #include "bcm_sf2.h" |
36 | #include "bcm_sf2_regs.h" | 35 | #include "bcm_sf2_regs.h" |
@@ -1141,9 +1140,11 @@ static void bcm_sf2_sw_shutdown(struct platform_device *pdev) | |||
1141 | /* For a kernel about to be kexec'd we want to keep the GPHY on for a | 1140 | /* For a kernel about to be kexec'd we want to keep the GPHY on for a |
1142 | * successful MDIO bus scan to occur. If we did turn off the GPHY | 1141 | * successful MDIO bus scan to occur. If we did turn off the GPHY |
1143 | * before (e.g: port_disable), this will also power it back on. | 1142 | * before (e.g: port_disable), this will also power it back on. |
1143 | * | ||
1144 | * Do not rely on kexec_in_progress, just power the PHY on. | ||
1144 | */ | 1145 | */ |
1145 | if (priv->hw_params.num_gphy == 1) | 1146 | if (priv->hw_params.num_gphy == 1) |
1146 | bcm_sf2_gphy_enable_set(priv->dev->ds, kexec_in_progress); | 1147 | bcm_sf2_gphy_enable_set(priv->dev->ds, true); |
1147 | } | 1148 | } |
1148 | 1149 | ||
1149 | #ifdef CONFIG_PM_SLEEP | 1150 | #ifdef CONFIG_PM_SLEEP |
diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c index 786ab85a5452..561675589511 100644 --- a/kernel/kexec_core.c +++ b/kernel/kexec_core.c | |||
@@ -59,7 +59,6 @@ size_t vmcoreinfo_max_size = sizeof(vmcoreinfo_data); | |||
59 | 59 | ||
60 | /* Flag to indicate we are going to kexec a new kernel */ | 60 | /* Flag to indicate we are going to kexec a new kernel */ |
61 | bool kexec_in_progress = false; | 61 | bool kexec_in_progress = false; |
62 | EXPORT_SYMBOL_GPL(kexec_in_progress); | ||
63 | 62 | ||
64 | 63 | ||
65 | /* Location of the reserved area for the crash kernel */ | 64 | /* Location of the reserved area for the crash kernel */ |