* [PATCH] ASoC: rockchip: use SPI dependency for rt5514
@ 2016-08-26 15:50 Arnd Bergmann
2016-08-27 13:45 ` Xing Zheng
2016-09-01 20:00 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2016-08-26 15:50 UTC (permalink / raw)
To: Mark Brown
Cc: Arnd Bergmann, Liam Girdwood, Heiko Stuebner, Xing Zheng,
Sjoerd Simons, alsa-devel, linux-arm-kernel, linux-rockchip,
linux-kernel
The rk3399 scans the spi_bus_type to find the rt5514 driver, but does not
actually have a Kconfig dependency on SPI, so we can end up with a link
failure:
sound/soc/codecs/snd-soc-rt5514-spi.o: In function `rt5514_spi_driver_init':
rt5514-spi.c:(.init.text+0x14): undefined reference to `__spi_register_driver'
sound/soc/codecs/snd-soc-rt5514-spi.o: In function `rt5514_spi_burst_read':
rt5514-spi.c:(.text.rt5514_spi_burst_read+0x18c): undefined reference to `spi_sync'
sound/soc/codecs/snd-soc-rt5514-spi.o: In function `rt5514_spi_burst_write':
rt5514-spi.c:(.text.rt5514_spi_burst_write+0x1b4): undefined reference to `spi_sync'
sound/soc/rockchip/snd-soc-rk3399-gru-sound.o: In function `rockchip_sound_probe':
rk3399_gru_sound.c:(.text.rockchip_sound_probe+0x128): undefined reference to `spi_bus_type'
This adds the missing dependency.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: c6eac8a36a84 ("ASoC: rockchip: Add machine driver for RK3399 GRU Boards")
---
sound/soc/rockchip/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig
index d82d763d4854..c783f9a22595 100644
--- a/sound/soc/rockchip/Kconfig
+++ b/sound/soc/rockchip/Kconfig
@@ -44,7 +44,7 @@ config SND_SOC_ROCKCHIP_RT5645
config SND_SOC_RK3399_GRU_SOUND
tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
- depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP
+ depends on SND_SOC_ROCKCHIP && I2C && GPIOLIB && CLKDEV_LOOKUP && SPI
select SND_SOC_ROCKCHIP_I2S
select SND_SOC_MAX98357A
select SND_SOC_RT5514
--
2.9.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: rockchip: use SPI dependency for rt5514
2016-08-26 15:50 [PATCH] ASoC: rockchip: use SPI dependency for rt5514 Arnd Bergmann
@ 2016-08-27 13:45 ` Xing Zheng
2016-09-01 20:00 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Xing Zheng @ 2016-08-27 13:45 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Mark Brown, Liam Girdwood, Heiko Stuebner, Sjoerd Simons,
alsa-devel, linux-arm-kernel, linux-rockchip, linux-kernel
Hi Arnd,
On 2016年08月26日 23:50, Arnd Bergmann wrote:
> The rk3399 scans the spi_bus_type to find the rt5514 driver, but does not
> actually have a Kconfig dependency on SPI, so we can end up with a link
> failure:
>
> sound/soc/codecs/snd-soc-rt5514-spi.o: In function `rt5514_spi_driver_init':
> rt5514-spi.c:(.init.text+0x14): undefined reference to `__spi_register_driver'
> sound/soc/codecs/snd-soc-rt5514-spi.o: In function `rt5514_spi_burst_read':
> rt5514-spi.c:(.text.rt5514_spi_burst_read+0x18c): undefined reference to `spi_sync'
> sound/soc/codecs/snd-soc-rt5514-spi.o: In function `rt5514_spi_burst_write':
> rt5514-spi.c:(.text.rt5514_spi_burst_write+0x1b4): undefined reference to `spi_sync'
> sound/soc/rockchip/snd-soc-rk3399-gru-sound.o: In function `rockchip_sound_probe':
> rk3399_gru_sound.c:(.text.rockchip_sound_probe+0x128): undefined reference to `spi_bus_type'
>
> This adds the missing dependency.
>
> Signed-off-by: Arnd Bergmann<arnd@arndb.de>
> Fixes: c6eac8a36a84 ("ASoC: rockchip: Add machine driver for RK3399 GRU Boards")
> ---
> sound/soc/rockchip/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sound/soc/rockchip/Kconfig b/sound/soc/rockchip/Kconfig
> index d82d763d4854..c783f9a22595 100644
> --- a/sound/soc/rockchip/Kconfig
> +++ b/sound/soc/rockchip/Kconfig
> @@ -44,7 +44,7 @@ config SND_SOC_ROCKCHIP_RT5645
>
> config SND_SOC_RK3399_GRU_SOUND
> tristate "ASoC support multiple codecs for Rockchip RK3399 GRU boards"
> - depends on SND_SOC_ROCKCHIP&& I2C&& GPIOLIB&& CLKDEV_LOOKUP
> + depends on SND_SOC_ROCKCHIP&& I2C&& GPIOLIB&& CLKDEV_LOOKUP&& SPI
> select SND_SOC_ROCKCHIP_I2S
> select SND_SOC_MAX98357A
> select SND_SOC_RT5514
So sorry to miss it... Thanks to help us to fix it. :-)
Tested-by: Xing Zheng <zhengxing@rock-chips.com>
Thanks.
--
- Xing Zheng
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: rockchip: use SPI dependency for rt5514
2016-08-26 15:50 [PATCH] ASoC: rockchip: use SPI dependency for rt5514 Arnd Bergmann
2016-08-27 13:45 ` Xing Zheng
@ 2016-09-01 20:00 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2016-09-01 20:00 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Liam Girdwood, Heiko Stuebner, Xing Zheng, Sjoerd Simons,
alsa-devel, linux-arm-kernel, linux-rockchip, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 398 bytes --]
On Fri, Aug 26, 2016 at 05:50:55PM +0200, Arnd Bergmann wrote:
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: c6eac8a36a84 ("ASoC: rockchip: Add machine driver for RK3399 GRU Boards")
The Fixes is usually sorted before everything else, looks a bit odd like
that especially as more signoffs get added. It's also a bit redundant
to use both () and "" not that it makes a huge difference.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-09-01 21:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-26 15:50 [PATCH] ASoC: rockchip: use SPI dependency for rt5514 Arnd Bergmann
2016-08-27 13:45 ` Xing Zheng
2016-09-01 20:00 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).