spi: SPI_TI_QSPI should depend on HAS_DMA
PATCH 1/1 spi: SPI_TI_QSPI should depend on HAS_DMA
If NO_DMA=y:
ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!
Add a dependency on HAS_DMA to fix this.
--- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/spi/Kconfig +1 -0
@@ -463,6 +463,7 @@ config SPI_OMAP24XX config SPI_TI_QSPI tristate "DRA7xxx QSPI controller support" + depends on HAS_DMA depends on ARCH_OMAP2PLUS || COMPILE_TEST help QSPI master controller for DRA7xxx used for flash devices.
Signature · 6 lines
2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
maintainerQuoted 5 lines · Geert Uytterhoeven
If NO_DMA=y:
ERROR: "
bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!Add a dependency on
HAS_DMAto fix this.
There's no progress on fixing the architectures that don't do DMA to stub it out? :(
Mark Brown
maintainerApplied "spi: SPI_TI_QSPI should depend on HAS_DMA" to the spi tree
In reply to Geert UytterhoevenThe patch
spi: SPI_TI_QSPI should depend on HAS_DMA
has been applied to the spi tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
967d6941f49f1ddd5764d3a09423a63841b9394cMon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <[email protected]>
Date: Thu, 4 May 2017 09:37:18 +0200
Subject: [PATCH] spi: SPI_TI_QSPI should depend on HAS_DMA
If NO_DMA=y:
ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!
Add a dependency on HAS_DMA to fix this.
--- drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/spi/Kconfig +1 -0
@@ -457,6 +457,7 @@ config SPI_OMAP24XX config SPI_TI_QSPI tristate "DRA7xxx QSPI controller support" + depends on HAS_DMA depends on ARCH_OMAP2PLUS || COMPILE_TEST help QSPI master controller for DRA7xxx used for flash devices.
Signature · 1 line
2.11.0
Hi Mark,
Quoted 9 lines · Mark Brown
Quoted 5 lines · Geert Uytterhoeven
If NO_DMA=y:
ERROR: "
bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!Add a dependency on
HAS_DMAto fix this.There's no progress on fixing the architectures that don't do DMA to stub it out? :(
Then it has to become "depends on HAS_DMA || COMPILE_TEST"?
Even more typing work for me ;-)
Gr{oetje,eeting}s,
Geert
--
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
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
maintainerQuoted 4 lines · Geert Uytterhoeven
Quoted 2 lines · Mark Brown
Quoted 1 line · Geert Uytterhoeven
If NO_DMA=y:
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
ERROR: "
bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!Add a dependency on
HAS_DMAto fix this.There's no progress on fixing the architectures that don't do DMA to stub it out? :(
Then it has to become "depends on
HAS_DMA||COMPILE_TEST"?
No, I was thinking more just not needing the dependency at all.
Hi Mark,
Quoted 7 lines · Mark Brown
Quoted 5 lines · Geert Uytterhoeven
Quoted 4 lines · Mark Brown
Quoted 3 lines · Geert Uytterhoeven
If NO_DMA=y:
ERROR: "
bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Add a dependency on
HAS_DMAto fix this.There's no progress on fixing the architectures that don't do DMA to stub it out? :(
Then it has to become "depends on
HAS_DMA||COMPILE_TEST"?No, I was thinking more just not needing the dependency at all.
Then what's the point of the existence of COMPILE_TEST? We can just have stubs for everything, and always build everything.
Gr{oetje,eeting}s,
Geert
--
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
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Mark Brown
maintainerQuoted 6 lines · Geert Uytterhoeven
Quoted 1 line · Mark Brown
No, I was thinking more just not needing the dependency at all.
Then what's the point of the existence of
COMPILE_TEST? We can just have stubs for everything, and always build everything.
It's useful for platform specific devices (like this one should be) but having to add dependencies for basic kernel APIs like the DMA one is just making for a lot of noise. There's plenty of platforms without DMA that also have no real use for this driver, it's not really a relevant thing when deciding if the driver might be useful if what you're trying to do is hide drivers that aren't useful on the platform.