OSDN Git Service

spi: pxa2xx: use a module softdep for dw_dmac
authorFlavio Suligoi <f.suligoi@asem.it>
Wed, 10 Apr 2019 12:51:36 +0000 (14:51 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 2 May 2019 01:37:47 +0000 (10:37 +0900)
With dw_dmac, sometimes the request of a DMA channel fails because
the DMA driver is not ready, so an explicit dependency request
is necessary.

Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c

index f7068cc..3e6811e 100644 (file)
@@ -1957,3 +1957,5 @@ static void __exit pxa2xx_spi_exit(void)
        platform_driver_unregister(&driver);
 }
 module_exit(pxa2xx_spi_exit);
+
+MODULE_SOFTDEP("pre: dw_dmac");