diff mbox

spi: SPI_TI_QSPI should depend on HAS_DMA

Message ID 1493883438-19462-1-git-send-email-geert@linux-m68k.org (mailing list archive)
State Accepted
Commit 967d6941f49f1ddd5764d3a09423a63841b9394c
Headers show

Commit Message

Geert Uytterhoeven May 4, 2017, 7:37 a.m. UTC
If NO_DMA=y:

    ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!

Add a dependency on HAS_DMA to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/spi/Kconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown May 14, 2017, 9:50 a.m. UTC | #1
On Thu, May 04, 2017 at 09:37:18AM +0200, Geert Uytterhoeven wrote:
> If NO_DMA=y:
> 
>     ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!
> 
> Add a dependency on HAS_DMA to fix this.

There's no progress on fixing the architectures that don't do DMA to
stub it out?  :(
Geert Uytterhoeven May 15, 2017, 8:46 a.m. UTC | #2
Hi Mark,

On Sun, May 14, 2017 at 11:50 AM, Mark Brown <broonie@kernel.org> wrote:
> On Thu, May 04, 2017 at 09:37:18AM +0200, Geert Uytterhoeven wrote:
>> If NO_DMA=y:
>>
>>     ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!
>>
>> Add a dependency on HAS_DMA to 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 -- geert@linux-m68k.org

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mark Brown May 15, 2017, 10:12 a.m. UTC | #3
On Mon, May 15, 2017 at 10:46:15AM +0200, Geert Uytterhoeven wrote:
> On Sun, May 14, 2017 at 11:50 AM, Mark Brown <broonie@kernel.org> wrote:
> > On Thu, May 04, 2017 at 09:37:18AM +0200, Geert Uytterhoeven wrote:
> >> If NO_DMA=y:

> >>     ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!

> >> Add a dependency on HAS_DMA to 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.
Geert Uytterhoeven May 15, 2017, 10:21 a.m. UTC | #4
Hi Mark,

On Mon, May 15, 2017 at 12:12 PM, Mark Brown <broonie@kernel.org> wrote:
> On Mon, May 15, 2017 at 10:46:15AM +0200, Geert Uytterhoeven wrote:
>> On Sun, May 14, 2017 at 11:50 AM, Mark Brown <broonie@kernel.org> wrote:
>> > On Thu, May 04, 2017 at 09:37:18AM +0200, Geert Uytterhoeven wrote:
>> >> If NO_DMA=y:
>
>> >>     ERROR: "bad_dma_ops" [drivers/spi/spi-ti-qspi.ko] undefined!
>
>> >> Add a dependency on HAS_DMA to 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 -- geert@linux-m68k.org

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 majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Mark Brown May 15, 2017, 10:53 a.m. UTC | #5
On Mon, May 15, 2017 at 12:21:33PM +0200, Geert Uytterhoeven wrote:
> On Mon, May 15, 2017 at 12:12 PM, Mark Brown <broonie@kernel.org> wrote:

> > 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.
diff mbox

Patch

diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig
index 6caff35af8815cda..51bf4da6dc18e7e8 100644
--- a/drivers/spi/Kconfig
+++ b/drivers/spi/Kconfig
@@ -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.