powerpc/44x: Force PCI on for CURRITUCK
Subsystems (2)
Michael Ellerman
reviewerPATCH 1/1 powerpc/44x: Force PCI on for CURRITUCK
The recent rework of PCI kconfig symbols exposed an existing bug in the CURRITUCK kconfig logic.
It selects PPC4xx_PCI_EXPRESS which depends on PCI, but PCI is user selectable and might be disabled, leading to a warning:
WARNING: unmet direct dependencies detected for PPC4xx_PCI_EXPRESS
Depends on [n]: PCI [=n] && 4xx [=y]
Selected by [y]:
- CURRITUCK [=y] && PPC_47x [=y]
Prior to commit eb01d42a7778 ("PCI: consolidate PCI config entry in drivers/pci") PCI was enabled by default for currituck_defconfig so we didn't see the warning. The bad logic was still there, it just required someone disabling PCI in their .config to hit it.
Fix it by forcing PCI on for CURRITUCK, which seems was always the expectation anyway.
--- arch/powerpc/platforms/44x/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/powerpc/platforms/44x/Kconfig +1 -0
@@ -180,6 +180,7 @@ config CURRITUCK depends on PPC_47x select SWIOTLB select 476FPE + select FORCE_PCI select PPC4xx_PCI_EXPRESS help This option enables support for the IBM Currituck (476fpe) evaluation board
Signature · 1 line
2.20.1
Thanks, this looks good to me:
Hi Michael,
Quoted 31 lines · Michael Ellerman
The recent rework of PCI kconfig symbols exposed an existing bug in the CURRITUCK kconfig logic.
It selects
PPC4xx_PCI_EXPRESSwhich depends on PCI, but PCI is user selectable and might be disabled, leading to a warning:WARNING: unmet direct dependencies detected for
PPC4xx_PCI_EXPRESS
Depends on [n]: PCI [=n] && 4xx [=y]
Selected by [y]:
- CURRITUCK [=y] &&PPC_47x[=y]Prior to commit
eb01d42a7778("PCI: consolidate PCI config entry indrivers/pci") PCI was enabled by default forcurrituck_defconfigso we didn't see the warning. The bad logic was still there, it just required someone disabling PCI in their .config to hit it.Fix it by forcing PCI on for CURRITUCK, which seems was always the expectation anyway.
Fixes eb01d42a7778 ("PCI: consolidate PCI config entry in drivers/pci")Reported-by Randy Dunlap <[email protected]>Signed-off-by Michael Ellerman <[email protected]>--- arch/powerpc/platforms/44x/Kconfig | 1 + 1 file changed, 1 insertion(+)arch/powerpc/platforms/44x/Kconfig +0
-0
arch/powerpc/platforms/44x/Kconfig config CURRITUCK · line 184
Quoted 5 lines
arch/powerpc/platforms/44x/Kconfig +1
-0@@ -180,6 +180,7 @@ config CURRITUCK depends on PPC_47x select SWIOTLB select 476FPE + select FORCE_PCI select PPC4xx_PCI_EXPRESS
Would "select PPC4xx_PCI_EXPRESS if PCI" be a suitable alternative?
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Michael Ellerman
reviewerQuoted 29 lines · Geert Uytterhoeven
Hi Michael,
Quoted 26 lines · Michael Ellerman
The recent rework of PCI kconfig symbols exposed an existing bug in the CURRITUCK kconfig logic.
It selects
PPC4xx_PCI_EXPRESSwhich depends on PCI, but PCI is user selectable and might be disabled, leading to a warning:WARNING: unmet direct dependencies detected for
PPC4xx_PCI_EXPRESS
Depends on [n]: PCI [=n] && 4xx [=y]
Selected by [y]:
- CURRITUCK [=y] &&PPC_47x[=y]Prior to commit
eb01d42a7778("PCI: consolidate PCI config entry indrivers/pci") PCI was enabled by default forcurrituck_defconfigso we didn't see the warning. The bad logic was still there, it just required someone disabling PCI in their .config to hit it.Fix it by forcing PCI on for CURRITUCK, which seems was always the expectation anyway.
Fixes eb01d42a7778 ("PCI: consolidate PCI config entry in drivers/pci")Reported-by Randy Dunlap <[email protected]>Signed-off-by Michael Ellerman <[email protected]>--- arch/powerpc/platforms/44x/Kconfig | 1 + 1 file changed, 1 insertion(+)
Quoted 12 lines
arch/powerpc/platforms/44x/Kconfig config CURRITUCK · line 184
Quoted 10 lines
arch/powerpc/platforms/44x/Kconfig +1
-0@@ -180,6 +180,7 @@ config CURRITUCK depends on PPC_47x select SWIOTLB select 476FPE + select FORCE_PCI select PPC4xx_PCI_EXPRESSWould "select
PPC4xx_PCI_EXPRESSif PCI" be a suitable alternative?
It would work, but I don't really like it because it means the dependency on PCI is now encoded in two places.
I also doubt it reflects the intention of the original authors, because at the time PCI was default y I suspect they never intended for PCI to be disabled for that board.
cheers
Michael Ellerman
AppliedQuoted 16 lines · Michael Ellerman
The recent rework of PCI kconfig symbols exposed an existing bug in the CURRITUCK kconfig logic.
It selects
PPC4xx_PCI_EXPRESSwhich depends on PCI, but PCI is user selectable and might be disabled, leading to a warning:WARNING: unmet direct dependencies detected for
PPC4xx_PCI_EXPRESS
Depends on [n]: PCI [=n] && 4xx [=y]
Selected by [y]:
- CURRITUCK [=y] &&PPC_47x[=y]Prior to commit
eb01d42a7778("PCI: consolidate PCI config entry indrivers/pci") PCI was enabled by default forcurrituck_defconfigso we didn't see the warning. The bad logic was still there, it just required someone disabling PCI in their .config to hit it.
Quoted 7 lines
Fix it by forcing PCI on for CURRITUCK, which seems was always the expectation anyway.
Fixes eb01d42a7778 ("PCI: consolidate PCI config entry in drivers/pci")Reported-by Randy Dunlap <[email protected]>Signed-off-by Michael Ellerman <[email protected]>Reviewed-by Christoph Hellwig <[email protected]>
Applied to powerpc next.
https://git.kernel.org/powerpc/c/aa7150ba378650d0e9d84b8e4d805946
cheers