From: Guennadi Liakhovetski Date: Thu, 11 Nov 2010 11:19:47 +0000 (+0100) Subject: mmc: tmio_mmc: fix PIO fallback on DMA descriptor allocation failure X-Git-Tag: v2.6.38-rc1~418^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef17fee1e559b3faeb6f89963e78ad47731d18a1;p=pandora-kernel.git 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 Signed-off-by: Chris Ball --- Reading git-diff-tree failed