mtd: rawnand: ingenic: Fix unmet dependency if COMPILE_TEST
Subsystems (5)
Paul Cercueil
maintainerPATCH 1/1 mtd: rawnand: ingenic: Fix unmet dependency if COMPILE_TEST
Commit 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver") dropped the dependency on JZ4780_NEMC when COMPILE_TEST was set, which is wrong, as the driver requires symbols provided by the jz4780-nemc driver.
Change the dependency to (MIPS || COMPILE_TEST) && JZ4780_NEMC to address the issue.
--- drivers/mtd/nand/raw/ingenic/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/ingenic/Kconfig +2 -1
@@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-only config MTD_NAND_JZ4780 tristate "JZ4780 NAND controller" - depends on JZ4780_NEMC || COMPILE_TEST + depends on MIPS || COMPILE_TEST + depends on JZ4780_NEMC help Enables support for NAND Flash connected to the NEMC on JZ4780 SoC based boards, using the BCH controller for hardware error correction.
Signature · 1 line
2.25.1
Miquel Raynal
maintainerHi Paul,
Paul Cercueil <[email protected]> wrote on Sat, 29 Feb 2020 13:04:43 -0300:
Quoted 7 lines
Commit
7c779cf7c1f7("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver") dropped the dependency onJZ4780_NEMCwhenCOMPILE_TESTwas set, which is wrong, as the driver requires symbols provided by the jz4780-nemc driver.Change the dependency to (MIPS ||
COMPILE_TEST) &&JZ4780_NEMCto address the issue.
That was simple actually, thanks for finding the solution. Actually I don't think I mergeg my own patch as it was creating this build issue (unless I messed with something :) ) so can you please send a patch just adding COMPILE_TEST support without any Fixes mention?
Quoted 13 lines
Fixes 7c779cf7c1f7 ("mtd: rawnand: ingenic: Allow to compile test the new Ingenic driver")Signed-off-by Paul Cercueil <[email protected]>--- drivers/mtd/nand/raw/ingenic/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/mtd/nand/raw/ingenic/Kconfig +0
-0
drivers/mtd/nand/raw/ingenic/Kconfig line 8
Quoted 9 lines
drivers/mtd/nand/raw/ingenic/Kconfig +2
-1@@ -1,7 +1,8 @@ # SPDX-License-Identifier: GPL-2.0-only config MTD_NAND_JZ4780 tristate "JZ4780 NAND controller" - depends on JZ4780_NEMC || COMPILE_TEST + depends on MIPS || COMPILE_TEST + depends on JZ4780_NEMC help Enables support for NAND Flash connected to the NEMC on JZ4780 SoC based boards, using the BCH controller for hardware error correction.
Thanks,
Miquèl