mmc: host: rk_sdmmc: add data-over-int timeout for data_busy
authorlintao <lintao@rock-chips.com>
Tue, 24 Jun 2014 09:20:42 +0000 (17:20 +0800)
committerlintao <lintao@rock-chips.com>
Wed, 25 Jun 2014 13:42:19 +0000 (21:42 +0800)
commitfbfdff1f4613c9fe382c9aaa8a4b9b0dc4e93449
tree032f84cfff718bea030ccc470fa79a2e906e7183
parent42573d84b28b82eed76cbac7848e7430fecd0cc9
mmc: host: rk_sdmmc: add data-over-int timeout  for data_busy
If devices fall in bad state make data_busy be hold too long,
dto interrupt will not be present, which leading  mmc-core wait for it forever.

 [<c06d42e4>] (__schedule+0x48c/0x554) from [<c06d275c>] (schedule_timeout+0x1c/0x260)
 [<c06d275c>] (schedule_timeout+0x1c/0x260) from [<c06d3c10>] (wait_for_common+0xd0/0x164)
 [<c06d3c10>] (wait_for_common+0xd0/0x164) from [<c044a4bc>] (mmc_wait_for_req_done+0x1c/0xe0)
 [<c044a4bc>] (mmc_wait_for_req_done+0x1c/0xe0) from [<c0453730>] (mmc_io_rw_extended+0x218/0x294)
 [<c0453730>] (mmc_io_rw_extended+0x218/0x294) from [<c0454590>] (sdio_io_rw_ext_helper+0xc8/0x194)
 [<c0454590>] (sdio_io_rw_ext_helper+0xc8/0x194) from [<c04546b0>] (sdio_memcpy_toio+0x1c/0x20)
 [<c04546b0>] (sdio_memcpy_toio+0x1c/0x20) from [<c032e96c>] (sdioh_request_packet+0x664/0x7e8)
 [<c032e96c>] (sdioh_request_packet+0x664/0x7e8) from [<c032fc78>] (sdioh_request_buffer+0x1a8/0x210)
drivers/mmc/host/rk_sdmmc.c
include/linux/mmc/rk_mmc.h