ASoC: pxa: don't select SSP for COMPILE_TESTing
Subsystems (3)
PATCH 1/1 ASoC: pxa: don't select SSP for COMPILE_TESTing
When the audio driver selects CONFIG_PXA_SSP to be a loadable module on a platform other than PXA, and the PXA SPI driver is built-in, we get a link error in the SPI driver:
drivers/spi/spi-pxa2xx.o: In function `pxa2xx_spi_remove':
spi-pxa2xx.c:(.text+0x5f0): undefined reference to pxa_ssp_free' drivers/spi/spi-pxa2xx.o: In function pxa2xx_spi_probe':
spi-pxa2xx.c:(.text+0xeac): undefined reference to pxa_ssp_request' spi-pxa2xx.c:(.text+0x1468): undefined reference to pxa_ssp_free' spi-pxa2xx.c:(.text+0x15bc): undefined reference to `pxa_ssp_free'
--- sound/soc/pxa/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/pxa/Kconfig +1 -2
@@ -33,7 +33,7 @@ config SND_PXA2XX_SOC_I2S config SND_PXA_SOC_SSP tristate - select PXA_SSP + select PXA_SSP if ARCH_PXA config SND_MMP_SOC_SSPA tristate
@@ -141,7 +141,6 @@ config SND_PXA910_SOC config SND_SOC_TTC_DKB tristate "SoC Audio support for TTC DKB" depends on SND_PXA910_SOC && MACH_TTC_DKB && I2C=y - select PXA_SSP select SND_PXA_SOC_SSP select SND_MMP_SOC select MFD_88PM860X
Signature · 1 line
2.9.0
Mark Brown
maintainerQuoted 3 lines · Arnd Bergmann
When the audio driver selects
CONFIG_PXA_SSPto be a loadable module on a platform other than PXA, and the PXA SPI driver is built-in, we get a link error in the SPI driver:
Why doesn't this cause problems on PXA?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170807/855a6a24/attachment.sig>
Quoted 6 lines · Mark Brown
Quoted 3 lines · Arnd Bergmann
When the audio driver selects
CONFIG_PXA_SSPto be a loadable module on a platform other than PXA, and the PXA SPI driver is built-in, we get a link error in the SPI driver:Why doesn't this cause problems on PXA?
On PXA, we 'make' descends into arch/arm/plat-pxa/, where ssp.o is located. On other ARM platforms (I guess except for MMP), PLAT_PXA is not set, and on non-ARM architectures, we can't get there anyway.
Arnd
Mark Brown
maintainerQuoted 6 lines · Arnd Bergmann
Quoted 4 lines · Mark Brown
Quoted 3 lines · Arnd Bergmann
When the audio driver selects
CONFIG_PXA_SSPto be a loadable module on a platform other than PXA, and the PXA SPI driver is built-in, we get a link error in the SPI driver:
Quoted 6 lines
Quoted 1 line
Why doesn't this cause problems on PXA?
On PXA, we 'make' descends into
arch/arm/plat-pxa/, where ssp.o is located. On other ARM platforms (I guess except for MMP),PLAT_PXAis not set, and on non-ARM architectures, we can't get there anyway.
Still missing a few steps of reasoning here...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170807/94962595/attachment.sig>
Quoted 7 lines · Mark Brown
Quoted 5 lines · Arnd Bergmann
Quoted 4 lines · Mark Brown
Quoted 3 lines · Arnd Bergmann
When the audio driver selects
CONFIG_PXA_SSPto be a loadable module on a platform other than PXA, and the PXA SPI driver is built-in, we get a link error in the SPI driver:
Quoted 8 lines
Quoted 6 lines
Quoted 1 line
Why doesn't this cause problems on PXA?
On PXA, we 'make' descends into
arch/arm/plat-pxa/, where ssp.o is located. On other ARM platforms (I guess except for MMP),PLAT_PXAis not set, and on non-ARM architectures, we can't get there anyway.Still missing a few steps of reasoning here...
Sorry, I just realized that you were trying to point out the incomplete changelog. I must have accidentally closed the editor while working on it, and then sent it out today after getting no regressions.
I'll resend with a proper changelog.
Arnd
Mark Brown
maintainerQuoted 9 lines · Arnd Bergmann
Quoted 1 line · Mark Brown
Still missing a few steps of reasoning here...
Sorry, I just realized that you were trying to point out the incomplete changelog. I must have accidentally closed the editor while working on it, and then sent it out today after getting no regressions.
I'll resend with a proper changelog.
Thanks!
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 11 lines · Arnd Bergmann
When the audio driver selects
CONFIG_PXA_SSPto be a loadable module on a platform other than PXA, and the PXA SPI driver is built-in, we get a link error in the SPI driver:
drivers/spi/spi-pxa2xx.o: In function `pxa2xx_spi_remove':
spi-pxa2xx.c:(.text+0x5f0): undefined reference topxa_ssp_free' drivers/spi/spi-pxa2xx.o: In functionpxa2xx_spi_probe':
spi-pxa2xx.c:(.text+0xeac): undefined reference topxa_ssp_request' spi-pxa2xx.c:(.text+0x1468): undefined reference topxa_ssp_free' spi-pxa2xx.c:(.text+0x15bc): undefined reference to `pxa_ssp_free'
Quoted 2 lines
Fixes 73d7ee2e831f ("ASoC: pxa: add COMPILE_TEST on SND_PXA2XX_SOC")Signed-off-by Arnd Bergmann <[email protected]>
While trying to write up a better changelog, I found that I had run into this before and attempted a different fix, see
https://patchwork.kernel.org/patch/8879921/
The commit I referred to in "Fixes:" did not introduce a new problem at all, but it appears to have made it more likely to run into this situation.
Sending a third patch now, again different.
Mark, let me know if you want something else instead.
Arnd