Skip to contentSkip to conversation

ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

PATCH In review Tom Rini 2 participants 4 messages Mar 15, 2025 – Mar 27, 2025 Arm (32-bit)

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

The use of both "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION" and "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE" here is wrong as those are both part of the same choice statement. Furthermore you cannot select/imply something from a choice statement, it must be a "default ... if ..." construct within the choice statement in question.

---
Cc: Tien Fong Chee <[email protected]>

---
 arch/arm/Kconfig | 2 --
 1 file changed, 2 deletions(-)
arch/arm/Kconfig +0 -2
index cf08fe63f1e7..071fbf1fb202 100644
@@ -1163,8 +1163,6 @@ config ARCH_SOCFPGA
 	imply SPL_DM_SPI_FLASH
 	imply SPL_LIBDISK_SUPPORT
 	imply SPL_MMC
-	imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
-	imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
 	imply SPL_SPI_FLASH_SUPPORT
 	imply SPL_SPI
 	imply L2X0_CACHE
Signature · 1 line
2.43.0
#1 lore raw

Hi Tony,

Quoted 8 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Saturday, March 15, 2025 9:29 AM
To: [email protected]
Cc: Chee, Tien Fong <[email protected]>
Subject: [PATCH] ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

Quoted 7 lines

The use of both "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION" and "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE" here is wrong as those are both part of the same choice statement. Furthermore you cannot select/imply something from a choice statement, it must be a "default ...
if ..." construct within the choice statement in question.

I think the imply here which allows for overwritten in defconfig. To support the "default....if...", new config for platform specific in Kconfig is required. Is there any other approach better to support this?

So latter approach is preferred?

Quoted 22 lines

---
Cc: Tien Fong Chee <[email protected]>

---
 arch/arm/Kconfig | 2 --
 1 file changed, 2 deletions(-)
arch/arm/Kconfig index renamed from arch/arm/Kconfig +0 -0

cf08fe63f1e7..071fbf1fb202 100644

arch/arm/Kconfig +0 -3
@@ -1163,8 +1163,6 @@ config ARCH_SOCFPGA
 	imply SPL_DM_SPI_FLASH
 	imply SPL_LIBDISK_SUPPORT
 	imply SPL_MMC
-	imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
-	imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
 	imply SPL_SPI_FLASH_SUPPORT
 	imply SPL_SPI
 	imply L2X0_CACHE
--
Quoted 1 line

2.43.0

Best regards
Tien Fong

author
#2 lore raw
Quoted 18 lines · Tien Fong

Hi Tony,

Quoted 8 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Saturday, March 15, 2025 9:29 AM
To: [email protected]
Cc: Chee, Tien Fong <[email protected]>
Subject: [PATCH] ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

Quoted 7 lines

The use of both "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION" and "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE" here is wrong as those are both part of the same choice statement. Furthermore you cannot select/imply something from a choice statement, it must be a "default ...
if ..." construct within the choice statement in question.

Quoted 1 line

I think the imply here which allows for overwritten in defconfig.

It doesn't. The specific warning is that these imply statements have no effect.

Quoted 3 lines

To support the "default....if...", new config for platform specific in Kconfig is required. Is there any other approach better to support this?

Adding "default SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION if ..." to the choice statement is fine. But the follow-up question is if it's something worth being listed like that compared with just being set as needed in the defconfig.

Signature · 1 line
Tom
#3 lore raw
Quoted 25 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Tuesday, March 18, 2025 9:58 PM
To: Chee, Tien Fong <[email protected]>
Cc: [email protected]
Subject: Re: [PATCH] ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

Quoted 13 lines · Tien Fong

Hi Tony,

Quoted 11 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Saturday, March 15, 2025 9:29 AM
To: [email protected]
Cc: Chee, Tien Fong <[email protected]>
Subject: [PATCH] ARM: socfpga: Drop incorrect imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION*

The use of both "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION" and "imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE" here is

wrong as those

Quoted 8 lines
Quoted 6 lines
Quoted 4 lines

are both part of the same choice statement. Furthermore you cannot select/imply something from a choice statement, it must be a "default ...
if ..." construct within the choice statement in question.

I think the imply here which allows for overwritten in defconfig.

It doesn't. The specific warning is that these imply statements have no effect.

Okay, I'm not aware this now is not working, because I tested this worked long time ago.

Quoted 9 lines
Quoted 4 lines

To support the "default....if...", new config for platform specific in Kconfig is required. Is there any other approach better to support this?

Adding "default SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION if ..."
to the choice statement is fine. But the follow-up question is if it's something worth being listed like that compared with just being set as needed in the defconfig.

Yeah, I see the value in this, imagine most of device defconfig need this config, then this can be centralized here with imply instead of adding this config to respective defconfig for looking neat. Minor devices which this config is not required to be enabled, this can be overwritten to disable in their respective defconfig.

Quoted 3 lines

--
Tom