Skip to contentSkip to conversation

dm: core: Correct reference to DM_SPL in SPL_DM_STATS

PATCH In review Simon Glass 2 participants 4 messages Nov 12, 2023 – Nov 17, 2023 Block layer

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 dm: core: Correct reference to DM_SPL in SPL_DM_STATS

This does not existing anymore. Update SPL_DM_STATS to use the correct Kconfig option, which is SPL_DM

---

Changes in v3:
- Split the patch into two

Changes in v2:
- Add new patch to correct references to DM_SPL

 drivers/core/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/core/Kconfig +1 -1
index fe5c41d57ecd..209d90e01fa5 100644
@@ -88,7 +88,7 @@ config DM_STATS
 
 config SPL_DM_STATS
 	bool "Collect and show driver model stats in SPL"
-	depends on DM_SPL
+	depends on SPL_DM
 	help
 	  Enable this to collect and display memory statistics about driver
 	  model. This can help to figure out where all the memory is going and
Signature · 1 line
2.42.0.869.gea05f2083d-goog
#1 lore raw

PATCH v3 2/2 blk: Drop reference to DM_SPL

The intent here is to only allow SPL_LEGACY_BLK if !SPL_DM - i.e. that when driver model is enabled in SPL, legacy block cannot be used.

However this combination is used by about 240 boards, so we cannot disallow it, at least not yet.

So just drop the condition.

---

(no changes since v1)

 drivers/block/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/block/Kconfig +1 -1
index b897cf1a3d1b..6ad18889f61e 100644
@@ -13,7 +13,7 @@ config BLK
 
 config SPL_LEGACY_BLOCK
 	bool # "Enable Legacy Block Device"
-	depends on SPL && !DM_SPL
+	depends on SPL
 	default y if SPL_MMC || SPL_USB_STORAGE || SCSI || NVME || IDE
 	default y if SPL_AHCI_PCI
 	help
Signature · 1 line
2.42.0.869.gea05f2083d-goog
#2 lore raw

Re: [PATCH v3 2/2] blk: Drop reference to DM_SPL

Quoted 9 lines · Simon Glass

The intent here is to only allow SPL_LEGACY_BLK if !SPL_DM - i.e. that when driver model is enabled in SPL, legacy block cannot be used.

However this combination is used by about 240 boards, so we cannot disallow it, at least not yet.

So just drop the condition.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom