]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
memory: fsl_ifc: Make FSL_IFC config visible and selectable
authorEsben Haabendal <esben@geanix.com>
Thu, 30 May 2024 14:46:36 +0000 (16:46 +0200)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 12 Jun 2024 08:17:37 +0000 (10:17 +0200)
While use of fsl_ifc driver with NAND flash is fine, as the fsl_ifc_nand
driver selects FSL_IFC automatically, we need the CONFIG_FSL_IFC option to
be selectable for platforms using fsl_ifc with NOR flash.

Fixes: ea0c0ad6b6eb ("memory: Enable compile testing for most of the drivers")
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Esben Haabendal <esben@geanix.com>
Link: https://lore.kernel.org/r/20240530-fsl-ifc-config-v3-1-1fd2c3d233dd@geanix.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/memory/Kconfig
drivers/mtd/nand/raw/Kconfig

index 8efdd1f9713950766fa04eac0c215988fbdb1b60..c82d8d8a16eaf154c247c0dbb9aff428b7c81402 100644 (file)
@@ -167,7 +167,7 @@ config FSL_CORENET_CF
          represents a coherency violation.
 
 config FSL_IFC
-       bool "Freescale IFC driver" if COMPILE_TEST
+       bool "Freescale IFC driver"
        depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
        depends on HAS_IOMEM
 
index cbf8ae85e1ae0e9bd619fb5ab97c3c41a57d068f..6142573085169ae7d820888edb054d35363ed5dd 100644 (file)
@@ -234,8 +234,7 @@ config MTD_NAND_FSL_IFC
        tristate "Freescale IFC NAND controller"
        depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST
        depends on HAS_IOMEM
-       select FSL_IFC
-       select MEMORY
+       depends on FSL_IFC
        help
          Various Freescale chips e.g P1010, include a NAND Flash machine
          with built-in hardware ECC capabilities.