spi: SPI_FSL_DSPI should depend on HAS_DMA
PATCH 1/1 spi: SPI_FSL_DSPI should depend on HAS_DMA
If NO_DMA=y:
ERROR: "bad_dma_ops" [drivers/spi/spi-fsl-dspi.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
@@ -378,6 +378,7 @@ config SPI_FSL_SPI config SPI_FSL_DSPI tristate "Freescale DSPI controller" select REGMAP_MMIO + depends on HAS_DMA depends on SOC_VF610 || SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST help This enables support for the Freescale DSPI controller in master
Signature · 1 line
1.9.1
Mark Brown
maintainerQuoted 5 lines · Geert Uytterhoeven
If NO_DMA=y:
ERROR: "
bad_dma_ops" [drivers/spi/spi-fsl-dspi.ko] undefined!Add a dependency on
HAS_DMAto fix this.
Honestly I think we should just fix the architectures that don't support DMA to provide compile out stubs for DMA, it seems like these dependencies are more trouble than they're worth.
Hi Mark,
Quoted 10 lines · Mark Brown
Quoted 5 lines · Geert Uytterhoeven
If NO_DMA=y:
ERROR: "
bad_dma_ops" [drivers/spi/spi-fsl-dspi.ko] undefined!Add a dependency on
HAS_DMAto fix this.Honestly I think we should just fix the architectures that don't support DMA to provide compile out stubs for DMA, it seems like these dependencies are more trouble than they're worth.
Will that really help?
Then people will start adding "depends on HAS_DMA || COMPILE_TEST" instead...
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 11 lines · Geert Uytterhoeven
Quoted 5 lines · Mark Brown
On Wed, Dec 14, 2016 at 01:28:05PM +0100, Geert Uytterhoeven wrote:
Honestly I think we should just fix the architectures that don't support DMA to provide compile out stubs for DMA, it seems like these dependencies are more trouble than they're worth.
Will that really help?
Then people will start adding "depends on
HAS_DMA||COMPILE_TEST" instead...
No, I'm thinking just arrange things so that we don't need to depend on HAS_DMA at all.
Mark Brown
maintainerApplied "spi: SPI_FSL_DSPI should depend on HAS_DMA" to the spi tree
In reply to Geert UytterhoevenThe patch
spi: SPI_FSL_DSPI 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
dadab2d4e3cf708ceba22ecddd94aedfecb39199Mon Sep 17 00:00:00 2001
From: Geert Uytterhoeven <[email protected]>
Date: Wed, 14 Dec 2016 13:28:05 +0100
Subject: [PATCH] spi: SPI_FSL_DSPI should depend on HAS_DMA
If NO_DMA=y:
ERROR: "bad_dma_ops" [drivers/spi/spi-fsl-dspi.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
@@ -378,6 +378,7 @@ config SPI_FSL_SPI config SPI_FSL_DSPI tristate "Freescale DSPI controller" select REGMAP_MMIO + depends on HAS_DMA depends on SOC_VF610 || SOC_LS1021A || ARCH_LAYERSCAPE || COMPILE_TEST help This enables support for the Freescale DSPI controller in master
Signature · 6 lines
2.11.0 -- 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