]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: tmio_mmc: fix PIO fallback on DMA descriptor allocation failure
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 11 Nov 2010 11:19:47 +0000 (12:19 +0100)
committerChris Ball <cjb@laptop.org>
Sun, 9 Jan 2011 04:52:28 +0000 (23:52 -0500)
commitd97fe3f115036b55e6871353720d993675cbf5dd
treea2cef08fdbf4f922c10bd9b6ecfd67b5c1d0a4d2
parentdc9f2a13475d98b008605ce77790be0fe44c12dd
mmc: tmio_mmc: fix PIO fallback on DMA descriptor allocation failure

The easiest way to fall back to PIO, when a DMA descriptor allocation
fails is to disable DMA on the controller but continue with the current
request in PIO mode. This way tmio_mmc_start_dma() can become void, since
it cannot be failing any more. The current version is also broken: it is
testing a wrong pointer and thus failing to recognise, that a descriptor
allocation wasn't successful.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/tmio_mmc.c
drivers/mmc/host/tmio_mmc.h