diff options
author | Per Forlin <per.forlin@linaro.org> | 2011-11-07 21:55:11 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-12-07 23:10:56 -0500 |
commit | 053bf34f5aff499d7b595c500bbab5cbab3636e7 (patch) | |
tree | f9aea368b5cd073a4de74f7372402c343bb88c2d /firmware/keyspan | |
parent | 77a7300abad7fe01891b400e88d746f97307ee5a (diff) | |
download | blackbird-obmc-linux-053bf34f5aff499d7b595c500bbab5cbab3636e7.tar.gz blackbird-obmc-linux-053bf34f5aff499d7b595c500bbab5cbab3636e7.zip |
mmc: omap_hsmmc: DMA unmap only once in case of MMC error
Reported by Russell King:
mmcblk0: error -84 transferring data, sector 149201, nr 64,
cmd response 0x900, card status 0xb00
mmcblk0: retrying using single block read
WARNING: at lib/dma-debug.c:811 check_unmap
omap_hsmmc omap_hsmmc.0: DMA-API: device driver tries to free DMA memory
it has not allocated [device address=0x0000000080933000] [size=20480 bytes]
In case of an error dma_unmap() is issued in omap_hsmmc_dma_cleanup()
and then again in omap_hsmmc_post_req(). Resolve this by clearing the
host_cookie to indicate there is no DMA mapped memory to unmap.
Signed-off-by: Per Forlin <per.forlin@linaro.org>
Tested-by: Balaji T K <balajitk@ti.com>
Tested-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'firmware/keyspan')
0 files changed, 0 insertions, 0 deletions