Skip to contentSkip to conversation

mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH

PATCH New Jagan Teki 2 participants 2 messages Oct 16, 2019 – Oct 17, 2019 Memory technology devices (MTD)

lore
Share & tools
lore

Jagan Teki

author
#0 lore raw

PATCH v2 1/1 mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH

DM_SPI_FLASH should require spi flash interface code for dm version, so select SPI_FLASH core by default if any board enabled DM_SPI_FLASH.

This overcome the explicit enablement of CONFIG_SPI_FLASH on respective boards when DM_SPI_FLASH being used.

---
Changes for v2:
- use imply than select

 drivers/mtd/spi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/Kconfig +1 -0
index a0cfc623c6..681dc9cccc 100644
@@ -3,6 +3,7 @@ menu "SPI Flash Support"
 config DM_SPI_FLASH
 	bool "Enable Driver Model for SPI flash"
 	depends on DM && DM_SPI
+	imply SPI_FLASH
 	help
 	  Enable driver model for SPI flash. This SPI flash interface
 	  (spi_flash_probe(), spi_flash_write(), etc.) is then
Signature · 1 line
2.18.0.321.gffc6fa0e3
#1 lore raw

PATCH v2 1/1 mtd: spi: Kconfig: Imply SPI_FLASH if DM_SPI_FLASH

Quoted 10 lines · Jagan Teki

DM_SPI_FLASH should require spi flash interface code for dm version, so select SPI_FLASH core by default if any board enabled DM_SPI_FLASH.

This overcome the explicit enablement of CONFIG_SPI_FLASH on respective boards when DM_SPI_FLASH being used.

---

Quoted 19 lines

Changes for v2:
- use imply than select

 drivers/mtd/spi/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/mtd/spi/Kconfig +1 -0
index a0cfc623c6..681dc9cccc 100644
@@ -3,6 +3,7 @@ menu "SPI Flash Support"
 config DM_SPI_FLASH
 	bool "Enable Driver Model for SPI flash"
 	depends on DM && DM_SPI
+	imply SPI_FLASH
 	help
 	  Enable driver model for SPI flash. This SPI flash interface
 	  (spi_flash_probe(), spi_flash_write(), etc.) is then
Signature · 2 lines
Regards
Vignesh