* [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP
@ 2026-07-22 22:06 Julian Braha
2026-07-23 6:31 ` Arnd Bergmann
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Julian Braha @ 2026-07-22 22:06 UTC (permalink / raw)
To: miquel.raynal, richard, vigneshr
Cc: arnd, sean, andriy.shevchenko, rdunlap, linux-mtd, linux-kernel,
Julian Braha
'select' does not work on config options in a 'choice', so currently it is
possible to enable MTD_PHYSMAP_IXP4XX without MTD_CFI_BE_BYTE_SWAP.
From a previous conversation, it was decided to remove the select entirely:
https://lore.kernel.org/all/c6268184-4904-49d9-b14f-0e11dce8bdad@app.fastmail.com/
This dead select was found by kconfirm, a static analysis tool for Kconfig.
Signed-off-by: Julian Braha <julianbraha@gmail.com>
---
Changes since v1: remove 'select' instead of using 'depends on'
Link:
https://lore.kernel.org/all/20260722001003.36598-1-julianbraha@gmail.com/
---
drivers/mtd/maps/Kconfig | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/maps/Kconfig b/drivers/mtd/maps/Kconfig
index f447902d707e..1bb3dba2631d 100644
--- a/drivers/mtd/maps/Kconfig
+++ b/drivers/mtd/maps/Kconfig
@@ -101,7 +101,6 @@ config MTD_PHYSMAP_IXP4XX
depends on MTD_PHYSMAP_OF
depends on ARM
select MTD_COMPLEX_MAPPINGS
- select MTD_CFI_BE_BYTE_SWAP if CPU_BIG_ENDIAN
default ARCH_IXP4XX
help
This provides some extra DT physmap parsing for the Intel IXP4xx
--
2.54.0
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP
2026-07-22 22:06 [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP Julian Braha
@ 2026-07-23 6:31 ` Arnd Bergmann
2026-08-06 20:59 ` Andy Shevchenko
2026-08-07 14:02 ` Miquel Raynal
2 siblings, 0 replies; 4+ messages in thread
From: Arnd Bergmann @ 2026-07-23 6:31 UTC (permalink / raw)
To: Julian Braha, Miquel Raynal, Richard Weinberger,
Vignesh Raghavendra
Cc: Sean Young, Andy Shevchenko, Randy Dunlap, linux-mtd,
linux-kernel
On Thu, Jul 23, 2026, at 00:06, Julian Braha wrote:
> 'select' does not work on config options in a 'choice', so currently it is
> possible to enable MTD_PHYSMAP_IXP4XX without MTD_CFI_BE_BYTE_SWAP.
>
> From a previous conversation, it was decided to remove the select
> entirely:
> https://lore.kernel.org/all/c6268184-4904-49d9-b14f-0e11dce8bdad@app.fastmail.com/
>
> This dead select was found by kconfirm, a static analysis tool for Kconfig.
>
> Signed-off-by: Julian Braha <julianbraha@gmail.com>
> ---
Acked-by: Arnd Bergmann <arnd@arndb.de>
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP
2026-07-22 22:06 [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP Julian Braha
2026-07-23 6:31 ` Arnd Bergmann
@ 2026-08-06 20:59 ` Andy Shevchenko
2026-08-07 14:02 ` Miquel Raynal
2 siblings, 0 replies; 4+ messages in thread
From: Andy Shevchenko @ 2026-08-06 20:59 UTC (permalink / raw)
To: Julian Braha
Cc: miquel.raynal, richard, vigneshr, arnd, sean, rdunlap, linux-mtd,
linux-kernel
On Wed, Jul 22, 2026 at 11:06:18PM +0100, Julian Braha wrote:
> 'select' does not work on config options in a 'choice', so currently it is
> possible to enable MTD_PHYSMAP_IXP4XX without MTD_CFI_BE_BYTE_SWAP.
>
> From a previous conversation, it was decided to remove the select entirely:
> https://lore.kernel.org/all/c6268184-4904-49d9-b14f-0e11dce8bdad@app.fastmail.com/
You can make this a proper Link tag.
"From a previous conversation [1], it was decided to remove the select entirely.
...
Link: $URL [1]"
> This dead select was found by kconfirm, a static analysis tool for Kconfig.
--
With Best Regards,
Andy Shevchenko
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP
2026-07-22 22:06 [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP Julian Braha
2026-07-23 6:31 ` Arnd Bergmann
2026-08-06 20:59 ` Andy Shevchenko
@ 2026-08-07 14:02 ` Miquel Raynal
2 siblings, 0 replies; 4+ messages in thread
From: Miquel Raynal @ 2026-08-07 14:02 UTC (permalink / raw)
To: richard, vigneshr, Julian Braha
Cc: arnd, sean, andriy.shevchenko, rdunlap, linux-mtd, linux-kernel
On Wed, 22 Jul 2026 23:06:18 +0100, Julian Braha wrote:
> 'select' does not work on config options in a 'choice', so currently it is
> possible to enable MTD_PHYSMAP_IXP4XX without MTD_CFI_BE_BYTE_SWAP.
>
> >From a previous conversation, it was decided to remove the select entirely:
> https://lore.kernel.org/all/c6268184-4904-49d9-b14f-0e11dce8bdad@app.fastmail.com/
>
> This dead select was found by kconfirm, a static analysis tool for Kconfig.
>
> [...]
Applied to mtd/next, thanks!
[1/1] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP
commit: 94d32f1ace8ee3ef3537ac6c8e71b76a418a4762
Patche(s) should be available on mtd/linux.git and will be
part of the next PR (provided that no robot complains by then).
Kind regards,
Miquèl
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-08-07 14:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22 22:06 [PATCH v2] mtd: maps: remove dead select of MTD_CFI_BE_BYTE_SWAP Julian Braha
2026-07-23 6:31 ` Arnd Bergmann
2026-08-06 20:59 ` Andy Shevchenko
2026-08-07 14:02 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox