All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Arnd Bergmann" <arnd@arndb.de>
To: "Linus Walleij" <linusw@kernel.org>, "Arnd Bergmann" <arnd@kernel.org>
Cc: linux-arm-kernel@lists.infradead.org, soc@lists.linux.dev,
	linux-kernel@vger.kernel.org,
	"Aaro Koskinen" <aaro.koskinen@iki.fi>,
	"A. Sverdlin" <alexander.sverdlin@siemens.com>,
	"Alexandre Belloni" <alexandre.belloni@bootlin.com>,
	"Alexandre Torgue" <alexandre.torgue@foss.st.com>,
	"Andrew Lunn" <andrew@lunn.ch>,
	"Ard Biesheuvel" <ardb@kernel.org>,
	"Claudiu Beznea" <claudiu.beznea@tuxon.dev>,
	"Daniel Mack" <daniel@zonque.org>,
	"Ethan Nelson-Moore" <enelsonmoore@gmail.com>,
	"Frank Li" <Frank.Li@nxp.com>,
	"Gregory Clement" <gregory.clement@bootlin.com>,
	"Haojian Zhuang" <haojian.zhuang@gmail.com>,
	"Jeremy J. Peper" <jeremy@jeremypeper.com>,
	"Kristoffer Ericson" <kristoffer.ericson@gmail.com>,
	"Krzysztof Kozlowski" <krzk@kernel.org>,
	"Mark Brown" <broonie@kernel.org>,
	"Marc Zyngier" <maz@kernel.org>,
	"Mike Rapoport" <rppt@kernel.org>,
	"Nicolas Ferre" <nicolas.ferre@microchip.com>,
	"Patrice Chotard" <patrice.chotard@foss.st.com>,
	"Ralph Siemsen" <ralph.siemsen@linaro.org>,
	"Robert Jarzmik" <robert.jarzmik@free.fr>,
	"Russell King" <linux@armlinux.org.uk>,
	"Sascha Hauer" <s.hauer@pengutronix.de>,
	"Sebastian Hesselbarth" <sebastian.hesselbarth@gmail.com>,
	"Stefan Agner" <stefan@agner.ch>,
	"Stefan Wiehler" <stefan.wiehler@nokia.com>,
	"Tony Lindgren" <tony@atomide.com>,
	"Vladimir Zapolskiy" <vz@mleia.com>,
	"Will Deacon" <will@kernel.org>
Subject: Re: [PATCH v2 06/19] ARM: mark CPU_ENDIAN_BE8 as deprecated
Date: Sat, 04 Jul 2026 12:33:11 +0200	[thread overview]
Message-ID: <60541bca-b0ec-4ffc-a2f8-31f196f43dc2@app.fastmail.com> (raw)
In-Reply-To: <CAD++jLmX9Kt0TJ7ZV5z6C71STSFasj+tteAuRZf1kskLPyg+8w@mail.gmail.com>

On Fri, Jul 3, 2026, at 22:29, Linus Walleij wrote:
> Hi Arnd,
>
> thanks for your patch!
>
> On Wed, Jul 1, 2026 at 11:25 PM Arnd Bergmann <arnd@kernel.org> wrote:
>
>>  config CPU_BIG_ENDIAN
>> -       bool "Build big-endian kernel"
>> +       bool "Build big-endian kernel (DEPRECATED)"
>
> I'm not so sure about this patch because it will look like IXP4XX is
> using a deprecated feature. The IXP4xx actually has many OpenWrt
> users.

How about the version below? If you like that better, I'll give
it a thorough build test and use that for v3.

     Arnd

diff --git a/arch/arm/mach-ixp4xx/Kconfig b/arch/arm/mach-ixp4xx/Kconfig
index cb46802f5ce5..cdcb42517eff 100644
--- a/arch/arm/mach-ixp4xx/Kconfig
+++ b/arch/arm/mach-ixp4xx/Kconfig
@@ -2,7 +2,6 @@
 menuconfig ARCH_IXP4XX
 	bool "IXP4xx-based platforms"
 	depends on ARCH_MULTI_V5
-	depends on CPU_BIG_ENDIAN
 	select ARM_APPENDED_DTB # Old Redboot bootloaders deployed
 	select CPU_XSCALE
 	select GPIO_IXP4XX
diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
index ac09b546b14e..a1716db26623 100644
--- a/arch/arm/mm/Kconfig
+++ b/arch/arm/mm/Kconfig
@@ -796,38 +796,32 @@ choice
 
 config CPU_LITTLE_ENDIAN
 	bool "Built little-endian kernel"
+	depends on !ARCH_IXP4XX
 	help
 	  Say Y if you plan on running a kernel in little-endian mode.
 	  This is the default and is used in practically all modern user
 	  space builds.
 
-config CPU_BIG_ENDIAN
-	bool "Build big-endian kernel (DEPRECATED)"
-	depends on ARCH_MULTI_V5 || BROKEN
-	depends on !LD_IS_LLD
-	help
-	  Say Y if you plan on running a kernel in big-endian mode.
-	  This works on many machines using ARMv6 or newer processors
-	  but requires big-endian user space.
-
-	  The only ARMv5 platform with big-endian support is
-	  Intel IXP4xx.
-
-endchoice
-
 config CPU_ENDIAN_BE8
-	bool
-	depends on CPU_BIG_ENDIAN
-	default CPU_V6 || CPU_V6K || CPU_V7 || CPU_V7M
+	bool "Build big-endian kernel (DEPRECATED)"
+	depends on BROKEN
+	depends on ARCH_MULTI_V6 || ARCH_MULTI_V7
+	select CPU_BIG_ENDIAN
 	help
 	  Support for the BE-8 (big-endian) mode on ARMv6 and ARMv7 processors.
 
+	  This is deprecated and will likely be removed in the future.
+
 config CPU_ENDIAN_BE32
-	bool
-	depends on CPU_BIG_ENDIAN
-	default !CPU_ENDIAN_BE8
+	bool "Build big-endian kernel"
+	depends on ARCH_IXP4XX
+	select CPU_BIG_ENDIAN
 	help
 	  Support for the BE-32 (big-endian) mode on pre-ARMv6 processors.
+endchoice
+
+config CPU_BIG_ENDIAN
+	bool
 
 config CPU_HIGH_VECTOR
 	depends on !MMU && CPU_CP15 && !CPU_ARM740T

  reply	other threads:[~2026-07-04 10:33 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-01 21:23 [PATCH v2 00/19] ARM: platform and feature deprecation Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 01/19] ARM: use CONFIG_AEABI by default everywhere Arnd Bergmann
2026-07-02  7:42   ` Nicolas Ferre
2026-07-02  8:34     ` Arnd Bergmann
2026-07-02 12:57   ` Alexandre Belloni
2026-07-02 16:10   ` Aaro Koskinen
2026-07-03 17:29   ` Sverdlin, Alexander
2026-07-01 21:23 ` [PATCH v2 02/19] ARM: limit OABI support to StrongARM CPUs Arnd Bergmann
2026-07-02 13:36   ` Alexandre Belloni
2026-07-02 13:40     ` Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 03/19] ARM: rework ARM11 CPU selection logic Arnd Bergmann
2026-07-02 13:46   ` Alexandre Belloni
2026-07-02 13:49     ` Arnd Bergmann
2026-07-02 16:14   ` Aaro Koskinen
2026-07-01 21:23 ` [PATCH v2 04/19] ARM: deprecate support for ARM1136r0 Arnd Bergmann
2026-07-01 22:11   ` Vladimir Zapolskiy
2026-07-02 16:59   ` Aaro Koskinen
2026-07-01 21:23 ` [PATCH v2 05/19] ARM: turn CONFIG_ATAGS off by default Arnd Bergmann
2026-07-01 22:22   ` Ethan Nelson-Moore
2026-07-02  6:31     ` Arnd Bergmann
2026-07-02 17:00   ` Aaro Koskinen
2026-07-01 21:23 ` [PATCH v2 06/19] ARM: mark CPU_ENDIAN_BE8 as deprecated Arnd Bergmann
2026-07-01 21:57   ` Ethan Nelson-Moore
2026-07-02  6:02     ` Arnd Bergmann
2026-07-03 20:29   ` Linus Walleij
2026-07-04 10:33     ` Arnd Bergmann [this message]
2026-07-04 11:05       ` Julian Braha
2026-07-01 21:23 ` [PATCH v2 07/19] ARM: update DEPRECATED_PARAM_STRUCT removal timeline Arnd Bergmann
2026-07-02  0:54   ` Ethan Nelson-Moore
2026-07-02  5:36     ` Arnd Bergmann
2026-07-02 12:04       ` Ralph Siemsen
2026-07-01 21:23 ` [PATCH v2 08/19] ARM: s3c64xx: extend deprecation schedule Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 09/19] ARM: update FPE_NWFPE help text Arnd Bergmann
2026-07-02 11:59   ` Ralph Siemsen
2026-07-01 21:23 ` [PATCH v2 10/19] ARM: mark IWMMXT as deprecated Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 11/19] ARM: mark ARCH_DOVE " Arnd Bergmann
2026-07-01 22:48   ` Ethan Nelson-Moore
2026-07-01 21:23 ` [PATCH v2 12/19] ARM: PXA: mark remaining board files " Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 13/19] ARM: orion5x: mark all " Arnd Bergmann
2026-07-02 13:50   ` Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 14/19] ARM: mark mach-sa1100 " Arnd Bergmann
2026-07-03 12:30   ` Linus Walleij
2026-07-03 13:13     ` Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 15/19] ARM: mark RiscPC " Arnd Bergmann
2026-07-01 21:23 ` [PATCH v2 16/19] ARM: mark footbridge " Arnd Bergmann
2026-07-02 13:08   ` Ralph Siemsen
2026-07-01 21:23 ` [PATCH v2 17/19] ARM: mark Cortex-M3/M4/M7 based boards " Arnd Bergmann
2026-07-01 22:12   ` Vladimir Zapolskiy
2026-07-02  7:39   ` Nicolas Ferre
2026-07-02  8:43   ` Vladimir Murzin
2026-07-02 14:25   ` Frank Li
2026-07-01 21:23 ` [PATCH v2 18/19] ARM: mark axxia platform " Arnd Bergmann
2026-07-01 22:41   ` Ethan Nelson-Moore
2026-07-02  5:57     ` Arnd Bergmann
2026-07-03 17:13   ` Sverdlin, Alexander
2026-07-01 21:23 ` [PATCH v2 19/19] ARM: mark mv78xx0 support " Arnd Bergmann
2026-07-03 16:18   ` Gregory CLEMENT

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=60541bca-b0ec-4ffc-a2f8-31f196f43dc2@app.fastmail.com \
    --to=arnd@arndb.de \
    --cc=Frank.Li@nxp.com \
    --cc=aaro.koskinen@iki.fi \
    --cc=alexander.sverdlin@siemens.com \
    --cc=alexandre.belloni@bootlin.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew@lunn.ch \
    --cc=ardb@kernel.org \
    --cc=arnd@kernel.org \
    --cc=broonie@kernel.org \
    --cc=claudiu.beznea@tuxon.dev \
    --cc=daniel@zonque.org \
    --cc=enelsonmoore@gmail.com \
    --cc=gregory.clement@bootlin.com \
    --cc=haojian.zhuang@gmail.com \
    --cc=jeremy@jeremypeper.com \
    --cc=kristoffer.ericson@gmail.com \
    --cc=krzk@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=maz@kernel.org \
    --cc=nicolas.ferre@microchip.com \
    --cc=patrice.chotard@foss.st.com \
    --cc=ralph.siemsen@linaro.org \
    --cc=robert.jarzmik@free.fr \
    --cc=rppt@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=soc@lists.linux.dev \
    --cc=stefan.wiehler@nokia.com \
    --cc=stefan@agner.ch \
    --cc=tony@atomide.com \
    --cc=vz@mleia.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.