]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: sh-mmcif: Terminate DMA transactions when detecting timeout or error
authorTeppei Kamijou <teppei.kamijou.yb@renesas.com>
Wed, 12 Dec 2012 14:38:12 +0000 (15:38 +0100)
committerChris Ball <cjb@laptop.org>
Mon, 28 Jan 2013 11:51:32 +0000 (06:51 -0500)
commitf291683f09d8b87957fe9a7955ba61f369c09dc4
tree679d7b29797a41e45d41051368f08b3e21735f2e
parenta78b4ca276d7df627ebac50ae3d012c060fe04f8
mmc: sh-mmcif: Terminate DMA transactions when detecting timeout or error

If a DMA transaction fails, terminate all outstanding DMA transfers and
unmap buffers.

Signed-off-by: Teppei Kamijou <teppei.kamijou.yb@renesas.com>
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
[g.liakhovetski@gmx.de: forward-port, add dma_unmap_sg() in error cases]
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sh_mmcif.c