[PATCH 1/1] mmc: omap_hsmmc: DMA unmap only once in case of MMC error
Chris Ball
cjb at laptop.org
Mon Nov 7 13:41:33 EST 2011
Hi,
On Mon, Nov 07 2011, Russell King - ARM Linux wrote:
> On Mon, Nov 07, 2011 at 09:55:11PM +0530, Balaji T K wrote:
>> From: Per Forlin <per.forlin at linaro.org>
>>
>> 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 at linaro.org>
>> Tested-by: Balaji T K <balajitk at ti.com>
>> ---
>> Repost with my Tested-by
>
> Thanks.
>
> Tested-by: Russell King <rmk+kernel at arm.linux.org.uk>
Thanks, pushed to mmc-next for 3.2.
--
Chris Ball <cjb at laptop.org> <http://printf.net/>
One Laptop Per Child
More information about the linux-arm-kernel
mailing list