]> git.baikalelectronics.ru Git - kernel.git/commit
spi: omap2-mcspi: Fix transfers if DMADEVICES is not set
authorTony Lindgren <tony@atomide.com>
Sat, 13 Apr 2013 00:25:07 +0000 (17:25 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 15 Apr 2013 16:10:59 +0000 (17:10 +0100)
commit5c96ca540b8d22d226a16233985b7c806f3767ec
treeaadb2b8dda6fb3d8712f8a405d79a972442275f8
parentdb37b6af6f94f7745d043e168bcdd88c325fdb36
spi: omap2-mcspi: Fix transfers if DMADEVICES is not set

Selecting CONFIG_DMADEVICES is optional, and we must
be able to continue even without DMA. Otherwise things
like omap4430sdp nfsroot will fail if DMA is not
selected.

Note that the driver already supports PIO mode, but
we fail to fall back to PIO if requesting DMA channels
fails.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-omap2-mcspi.c