aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2015-10-28 05:39:55 -0400
committerOlof Johansson <olof@lixom.net>2015-10-30 21:31:01 -0400
commit980bbff018f64a22af0e75a12ee14cbfbc547e6a (patch)
tree7da176991118d3efa63271348d9f73221963fc27
parent7c62f299bafef82c83169ac0c4cf77874446fc83 (diff)
ARM64: juno: disable NOR flash node by default
After discussing on the mailing list it turns out that accessing the flash memory from the kernel can disrupt CPU sleep states and CPU hotplugging, so let's disable this DT node by default. Setups that want to access the flash can modify this entry to enable the flash again. Quoting Sudeep Holla: "the firmware assumes the flash is always in read mode while Linux leaves NOR flash in "read id" mode after initialization." Reported-by: Sudeep Holla <sudeep.holla@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Sudeep Holla <sudeep.holla@arm.com> Cc: Liviu Dudau <Liviu.Dudau@arm.com> Cc: Lorenzo Pieralisi <Lorenzo.Pieralisi@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Leif Lindholm <leif.lindholm@arm.com> Cc: Ryan Harkin <ryan.harkin@linaro.org> Fixes: 5078f77e1443 "ARM64: juno: add NOR flash to device tree" Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r--arch/arm64/boot/dts/arm/juno-motherboard.dtsi7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi
index c7c99a42e2e9..8c029ee2a5b5 100644
--- a/arch/arm64/boot/dts/arm/juno-motherboard.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-motherboard.dtsi
@@ -109,6 +109,13 @@
109 linux,part-probe = "afs"; 109 linux,part-probe = "afs";
110 reg = <0 0x00000000 0x04000000>; 110 reg = <0 0x00000000 0x04000000>;
111 bank-width = <4>; 111 bank-width = <4>;
112 /*
113 * Unfortunately, accessing the flash disturbs
114 * the CPU idle states (suspend) and CPU
115 * hotplug of the platform. For this reason,
116 * flash hardware access is disabled by default.
117 */
118 status = "disabled";
112 }; 119 };
113 120
114 ethernet@2,00000000 { 121 ethernet@2,00000000 {