* [PATCHv2] dmaengine: bestcomm: Enable compile testing
@ 2026-05-30 0:46 Rosen Penev
0 siblings, 0 replies; 6+ messages in thread
From: Rosen Penev @ 2026-05-30 0:46 UTC (permalink / raw)
To: dmaengine; +Cc: Vinod Koul, Frank Li, open list
Allow the BestComm DMA engine to be selected for PowerPC
compile-test builds.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
v2: remove PATA driver change.
drivers/dma/bestcomm/Kconfig | 3 +--
1 file changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/dma/bestcomm/Kconfig b/drivers/dma/bestcomm/Kconfig
index 5dd437295964..153b5492c93c 100644
--- a/drivers/dma/bestcomm/Kconfig
+++ b/drivers/dma/bestcomm/Kconfig
@@ -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
@@ -34,4 +34,3 @@ config PPC_BESTCOMM_GEN_BD
depends on PPC_BESTCOMM
help
This option enables the support for the GenBD tasks.
-
--
2.54.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCHv2] dmaengine: bestcomm: Enable compile testing
@ 2026-09-18 17:59 Rosen Penev
2026-09-18 18:10 ` sashiko-bot
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Rosen Penev @ 2026-09-18 17:59 UTC (permalink / raw)
To: dmaengine; +Cc: Vinod Koul, Frank Li, open list
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.
Assisted-by: LLM
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
v2: keep it bestcomm only
drivers/dma/bestcomm/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion1(-)
diff --git a/drivers/dma/bestcomm/Kconfig b/drivers/dma/bestcomm/Kconfig
index 5dd437295964..153b5492c93c 100644
--- a/drivers/dma/bestcomm/Kconfig
+++ b/drivers/dma/bestcomm/Kconfig
@@ -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
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCHv2] dmaengine: bestcomm: Enable compile testing
2026-09-18 17:59 [PATCHv2] dmaengine: bestcomm: Enable compile testing Rosen Penev
@ 2026-09-18 18:10 ` sashiko-bot
2026-09-18 18:19 ` Rosen Penev
2026-09-18 19:41 ` Frank Li
2026-10-05 15:43 ` Vinod Koul
2 siblings, 1 reply; 6+ messages in thread
From: sashiko-bot @ 2026-09-18 18:10 UTC (permalink / raw)
To: Rosen Penev; +Cc: vkoul, dmaengine, Frank.Li
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 <rosenp@gmail.com>
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).
> diff --git a/drivers/dma/bestcomm/Kconfig b/drivers/dma/bestcomm/Kconfig
> index 5dd437295964d..e23ba4982d7ed 100644
> --- a/drivers/dma/bestcomm/Kconfig
> +++ b/drivers/dma/bestcomm/Kconfig
> @@ -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?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260918175950.21657-1-rosenp@gmail.com?part=1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHv2] dmaengine: bestcomm: Enable compile testing
2026-09-18 18:10 ` sashiko-bot
@ 2026-09-18 18:19 ` Rosen Penev
0 siblings, 0 replies; 6+ messages in thread
From: Rosen Penev @ 2026-09-18 18:19 UTC (permalink / raw)
To: sashiko-reviews; +Cc: vkoul, dmaengine, Frank.Li
On Fri, Sep 18, 2026 at 11:10 AM <sashiko-bot@kernel.org> wrote:
>
> 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
This was merged:
https://lore.kernel.org/linux-sound/178967135736.285745.8925263446043052641.b4-ty@b4/
> --
>
> commit 95cb68468081de8e2880323cb63c64d9da8626b0
> Author: Rosen Penev <rosenp@gmail.com>
>
> 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).
>
> > diff --git a/drivers/dma/bestcomm/Kconfig b/drivers/dma/bestcomm/Kconfig
> > index 5dd437295964d..e23ba4982d7ed 100644
> > --- a/drivers/dma/bestcomm/Kconfig
> > +++ b/drivers/dma/bestcomm/Kconfig
> > @@ -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?
>
> --
> Sashiko AI review · https://sashiko.dev/#/patchset/20260918175950.21657-1-rosenp@gmail.com?part=1
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHv2] dmaengine: bestcomm: Enable compile testing
2026-09-18 17:59 [PATCHv2] dmaengine: bestcomm: Enable compile testing Rosen Penev
2026-09-18 18:10 ` sashiko-bot
@ 2026-09-18 19:41 ` Frank Li
2026-10-05 15:43 ` Vinod Koul
2 siblings, 0 replies; 6+ messages in thread
From: Frank Li @ 2026-09-18 19:41 UTC (permalink / raw)
To: Rosen Penev; +Cc: dmaengine, Vinod Koul, Frank Li, open list
On Fri, Sep 18, 2026 at 10:59:50AM -0700, Rosen Penev wrote:
> 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.
>
> Assisted-by: LLM
> Signed-off-by: Rosen Penev <rosenp@gmail.com>
> ---
Reviewed-by: Frank Li <Frank.Li@nxp.com>
> v2: keep it bestcomm only
> drivers/dma/bestcomm/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion1(-)
>
> diff --git a/drivers/dma/bestcomm/Kconfig b/drivers/dma/bestcomm/Kconfig
> index 5dd437295964..153b5492c93c 100644
> --- a/drivers/dma/bestcomm/Kconfig
> +++ b/drivers/dma/bestcomm/Kconfig
> @@ -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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHv2] dmaengine: bestcomm: Enable compile testing
2026-09-18 17:59 [PATCHv2] dmaengine: bestcomm: Enable compile testing Rosen Penev
2026-09-18 18:10 ` sashiko-bot
2026-09-18 19:41 ` Frank Li
@ 2026-10-05 15:43 ` Vinod Koul
2 siblings, 0 replies; 6+ messages in thread
From: Vinod Koul @ 2026-10-05 15:43 UTC (permalink / raw)
To: dmaengine, Rosen Penev; +Cc: Frank Li, linux-kernel
On Fri, 18 Sep 2026 10:59:50 -0700, Rosen Penev wrote:
> 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.
>
>
> [...]
Applied, thanks!
[1/1] dmaengine: bestcomm: Enable compile testing
commit: 57946765c242005bdb16d17944c27662c8c5b013
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-10-05 15:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-18 17:59 [PATCHv2] dmaengine: bestcomm: Enable compile testing Rosen Penev
2026-09-18 18:10 ` sashiko-bot
2026-09-18 18:19 ` Rosen Penev
2026-09-18 19:41 ` Frank Li
2026-10-05 15:43 ` Vinod Koul
-- strict thread matches above, loose matches on Subject: below --
2026-05-30 0:46 Rosen Penev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox