]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jan 2022 15:40:11 +0000 (16:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jan 2022 15:40:11 +0000 (16:40 +0100)
added patches:
arm-9025-1-kconfig-cpu_big_endian-depends-on-ld_is_lld.patch
mtd-fixup-cfi-on-ixp4xx.patch

queue-5.4/arm-9025-1-kconfig-cpu_big_endian-depends-on-ld_is_lld.patch [new file with mode: 0644]
queue-5.4/mtd-fixup-cfi-on-ixp4xx.patch [new file with mode: 0644]
queue-5.4/series

diff --git a/queue-5.4/arm-9025-1-kconfig-cpu_big_endian-depends-on-ld_is_lld.patch b/queue-5.4/arm-9025-1-kconfig-cpu_big_endian-depends-on-ld_is_lld.patch
new file mode 100644 (file)
index 0000000..2bf23b8
--- /dev/null
@@ -0,0 +1,35 @@
+From 28187dc8ebd938d574edfc6d9e0f9c51c21ff3f4 Mon Sep 17 00:00:00 2001
+From: Nick Desaulniers <ndesaulniers@google.com>
+Date: Tue, 17 Nov 2020 00:46:39 +0100
+Subject: ARM: 9025/1: Kconfig: CPU_BIG_ENDIAN depends on !LD_IS_LLD
+
+From: Nick Desaulniers <ndesaulniers@google.com>
+
+commit 28187dc8ebd938d574edfc6d9e0f9c51c21ff3f4 upstream.
+
+LLD does not yet support any big endian architectures. Make this config
+non-selectable when using LLD until LLD is fixed.
+
+Link: https://github.com/ClangBuiltLinux/linux/issues/965
+
+Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
+Tested-by: Nathan Chancellor <natechancellor@gmail.com>
+Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
+Reported-by: kbuild test robot <lkp@intel.com>
+Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
+Cc: Anders Roxell <anders.roxell@linaro.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/arm/mm/Kconfig |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/arm/mm/Kconfig
++++ b/arch/arm/mm/Kconfig
+@@ -743,6 +743,7 @@ config SWP_EMULATE
+ config CPU_BIG_ENDIAN
+       bool "Build big-endian kernel"
+       depends on ARCH_SUPPORTS_BIG_ENDIAN
++      depends on !LD_IS_LLD
+       help
+         Say Y if you plan on running a kernel in big-endian mode.
+         Note that your board must be properly built and your board
diff --git a/queue-5.4/mtd-fixup-cfi-on-ixp4xx.patch b/queue-5.4/mtd-fixup-cfi-on-ixp4xx.patch
new file mode 100644 (file)
index 0000000..fb2abdb
--- /dev/null
@@ -0,0 +1,57 @@
+From 603362b4a58393061dcfed1c7f0d0fd4aba61126 Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Mon, 27 Sep 2021 16:10:37 +0200
+Subject: mtd: fixup CFI on ixp4xx
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit 603362b4a58393061dcfed1c7f0d0fd4aba61126 upstream.
+
+drivers/mtd/maps/ixp4xx.c requires MTD_CFI_BE_BYTE_SWAP to be set
+in order to compile.
+
+drivers/mtd/maps/ixp4xx.c:57:4: error: #error CONFIG_MTD_CFI_BE_BYTE_SWAP required
+
+This patch avoids the #error output by enforcing the policy in
+Kconfig. Not sure if this is the right approach, but it helps doing
+randconfig builds.
+
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Acked-by: Linus Walleij <linus.walleij@linaro.org>
+Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
+Link: https://lore.kernel.org/linux-mtd/20210927141045.1597593-1-arnd@kernel.org
+Cc: Anders Roxell <anders.roxell@linaro.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/mtd/chips/Kconfig |    2 ++
+ drivers/mtd/maps/Kconfig  |    2 +-
+ 2 files changed, 3 insertions(+), 1 deletion(-)
+
+--- a/drivers/mtd/chips/Kconfig
++++ b/drivers/mtd/chips/Kconfig
+@@ -55,12 +55,14 @@ choice
+         LITTLE_ENDIAN_BYTE, if the bytes are reversed.
+ config MTD_CFI_NOSWAP
++      depends on !ARCH_IXP4XX || CPU_BIG_ENDIAN
+       bool "NO"
+ config MTD_CFI_BE_BYTE_SWAP
+       bool "BIG_ENDIAN_BYTE"
+ config MTD_CFI_LE_BYTE_SWAP
++      depends on !ARCH_IXP4XX
+       bool "LITTLE_ENDIAN_BYTE"
+ endchoice
+--- a/drivers/mtd/maps/Kconfig
++++ b/drivers/mtd/maps/Kconfig
+@@ -303,7 +303,7 @@ config MTD_DC21285
+ config MTD_IXP4XX
+       tristate "CFI Flash device mapped on Intel IXP4xx based systems"
+-      depends on MTD_CFI && MTD_COMPLEX_MAPPINGS && ARCH_IXP4XX
++      depends on MTD_CFI && MTD_COMPLEX_MAPPINGS && ARCH_IXP4XX && MTD_CFI_ADV_OPTIONS
+       help
+         This enables MTD access to flash devices on platforms based
+         on Intel's IXP4xx family of network processors such as the
index 8bf39e5be52e4fb9484506c617420e10bd63f542..32b0b61f9ffd9be325b02f117761482802dabcd3 100644 (file)
@@ -11,3 +11,5 @@ firmware-qemu_fw_cfg-fix-null-pointer-deref-on-duplicate-entries.patch
 firmware-qemu_fw_cfg-fix-kobject-leak-in-probe-error-path.patch
 kvm-x86-remove-pmu-fixed_ctr3-from-msrs_to_save_all.patch
 alsa-hda-realtek-fix-silent-output-on-gigabyte-x570-aorus-master-after-reboot-from-windows.patch
+mtd-fixup-cfi-on-ixp4xx.patch
+arm-9025-1-kconfig-cpu_big_endian-depends-on-ld_is_lld.patch