dmaengine: bestcomm: Enable compile testing
PATCH v2 1/1 dmaengine: bestcomm: Enable compile testing
Allow the BestComm DMA engine to be selected for PowerPC compile-test builds.
The freescale ethernet and sound drivers now need a dependency on PPC_MPC52xx as they use headers/functions from that platform.
---
v2: keep it bestcomm only
drivers/dma/bestcomm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion1(-)
drivers/dma/bestcomm/Kconfig +1 -1
@@ -5,7 +5,7 @@ config PPC_BESTCOMM tristate "Bestcomm DMA engine support" - depends on PPC_MPC52xx + depends on PPC_MPC52xx || (PPC && COMPILE_TEST) default n select PPC_LIB_RHEAP help
Signature · 1 line
2.55.0
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Low] kconfig: missing PPC_MPC52xx dependency for SND_SOC_MPC5200_AC97 --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] kconfig: missing PPC_MPC52xx dependency for SND_SOC_MPC5200_AC97
--
commit 95cb68468081de8e2880323cb63c64d9da8626b0
Author: Rosen Penev <[email protected]>
dmaengine: bestcomm: Enable compile testing
This commit relaxing the dependency for the BestComm DMA engine allows it to be selected on PowerPC for compile-test builds. It adds an alternative dependency on (PPC && COMPILE_TEST).
drivers/dma/bestcomm/Kconfig line 8
Quoted 10 lines
drivers/dma/bestcomm/Kconfig +1
-1@@ -5,7 +5,7 @@ config PPC_BESTCOMM tristate "Bestcomm DMA engine support" - depends on PPC_MPC52xx + depends on PPC_MPC52xx || (PPC && COMPILE_TEST)
[Severity: Low]
Does relaxing this dependency cause an unresolved symbol during link time for SND_SOC_MPC5200_AC97?
When COMPILE_TEST is enabled on PowerPC, PPC_BESTCOMM can be selected without PPC_MPC52xx. However, SND_SOC_MPC5200_AC97 in sound/soc/fsl/Kconfig depends on PPC_BESTCOMM but lacks an explicit dependency on PPC_MPC52xx:
sound/soc/fsl/Kconfig:
config SND_SOC_MPC5200_AC97
tristate "Freescale MPC5200 PSC in AC97 mode driver" depends on PPC_BESTCOMM
This inherits PPC_BESTCOMM's relaxation and allows the driver to be built when the platform code is absent. In psc_ac97_cold_reset(), the driver unconditionally calls a platform function:
sound/soc/fsl/mpc5200_psc_ac97.c:psc_ac97_cold_reset() {
...
mpc5200_psc_ac97_gpio_reset(psc_dma->id);
...
}Since mpc5200_psc_ac97_gpio_reset() is only compiled when PPC_MPC52xx is enabled, does this result in an undefined reference at link time?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 3 lines · On Fri, Sep 18, 2026 at 11:10 AM <[email protected]> wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Low] kconfig: missingPPC_MPC52xxdependency forSND_SOC_MPC5200_AC97
This was merged:
https://lore.kernel.org/linux-sound/178967135736.285745.8925263446043052641.b4-ty@b4/
Quoted 50 lines
--
commit
95cb68468081de8e2880323cb63c64d9da8626b0
Author: Rosen Penev <[email protected]>dmaengine: bestcomm: Enable compile testing
This commit relaxing the dependency for the BestComm DMA engine allows it to be selected on PowerPC for compile-test builds. It adds an alternative dependency on (PPC &&
COMPILE_TEST).drivers/dma/bestcomm/Kconfig line 8
Quoted 10 lines
drivers/dma/bestcomm/Kconfig +1
-1@@ -5,7 +5,7 @@ config PPC_BESTCOMM tristate "Bestcomm DMA engine support" - depends on PPC_MPC52xx + depends on PPC_MPC52xx || (PPC && COMPILE_TEST)[Severity: Low]
Does relaxing this dependency cause an unresolved symbol during link time forSND_SOC_MPC5200_AC97?When
COMPILE_TESTis enabled on PowerPC,PPC_BESTCOMMcan be selected withoutPPC_MPC52xx. However,SND_SOC_MPC5200_AC97insound/soc/fsl/Kconfigdepends onPPC_BESTCOMMbut lacks an explicit dependency onPPC_MPC52xx:
sound/soc/fsl/Kconfig:
configSND_SOC_MPC5200_AC97
tristate "Freescale MPC5200 PSC in AC97 mode driver" depends onPPC_BESTCOMMThis inherits PPC_BESTCOMM's relaxation and allows the driver to be built when the platform code is absent. In
psc_ac97_cold_reset(), the driver unconditionally calls a platform function:sound/soc/fsl/mpc5200_psc_ac97.c:psc_ac97_cold_reset() { ... mpc5200_psc_ac97_gpio_reset(psc_dma->id); ... }Since
mpc5200_psc_ac97_gpio_reset()is only compiled whenPPC_MPC52xxis enabled, does this result in an undefined reference at link time?--
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 9 lines · Rosen Penev
Allow the BestComm DMA engine to be selected for PowerPC compile-test builds.
The freescale ethernet and sound drivers now need a dependency on
PPC_MPC52xxas they use headers/functions from that platform.Assisted-by LLMSigned-off-by Rosen Penev <[email protected]>---
Quoted 20 lines
v2: keep it bestcomm only
drivers/dma/bestcomm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion1(-)drivers/dma/bestcomm/Kconfig +1
-2@@ -5,7 +5,7 @@ config PPC_BESTCOMM tristate "Bestcomm DMA engine support" - depends on PPC_MPC52xx + depends on PPC_MPC52xx || (PPC && COMPILE_TEST) default n select PPC_LIB_RHEAP help --2.55.0
Quoted 8 lines · Rosen Penev
Allow the BestComm DMA engine to be selected for PowerPC compile-test builds.
The freescale ethernet and sound drivers now need a dependency on
PPC_MPC52xxas they use headers/functions from that platform.[...]
Applied, thanks!
[1/1] dmaengine: bestcomm: Enable compile testing
commit: 57946765c242005bdb16d17944c27662c8c5b013
Best regards,
Signature · 1 line
~Vinod