OSDN Git Service

spi: rspi: Handle dmaengine_prep_slave_sg() failures gracefully
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 9 Jul 2014 10:26:22 +0000 (12:26 +0200)
committerMark Brown <broonie@linaro.org>
Wed, 16 Jul 2014 21:41:12 +0000 (22:41 +0100)
commit85912a88c1ebcad04a5cfec971771195ce8d6691
treec52411154cd1c2443f9c51cc43fbdd324853c6f6
parent533465a8f8a969bac17550fc6f42cea1dfaa095f
spi: rspi: Handle dmaengine_prep_slave_sg() failures gracefully

As typically a shmobile SoC has less DMA channels than devices that can use
DMA, we may want to prioritize access to the DMA channels in the future.
This means that dmaengine_prep_slave_sg() may start failing arbitrarily.

Handle dmaengine_prep_slave_sg() failures gracefully by falling back to
PIO.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-rspi.c