linux-uconsole/include/linux/mmc
Addy Ke 909a801f21 BACKPORT: FROMLIST: mmc: dw_mmc: introduce timer for broken command transfer over scheme
Per the databook of designware mmc controller 2.70a, table 3-2, cmd
done interrupt should be fired as soon as the the cmd is sent via
cmd line. And the response timeout interrupt should be generated
unconditioinally as well if the controller doesn't receive the resp.
However that doesn't seem to meet the fact of rockchip specified Soc
platforms using dwmmc. We have continuously found the the cmd done or
response timeout interrupt missed somehow which took us a long time to
understand what was happening. Finally we narrow down the root to
the reconstruction of sample circuit for dwmmc IP introduced by
rockchip and the buggy design sweeps over all the existing rockchip
Socs using dwmmc disastrously.

It seems no way to work around this bug without the proper break-out
mechanism so that we seek for a parallel pair the same as the handling
for missing data response timeout, namely dto timer. Adding this cto
timer seems easily to handle this bug but it's hard to restrict
the code under the rockchip specified context. So after merging this
patch, it sets up the cto timer for all the platforms using dwmmc IP
which isn't ideal but at least we don't advertise new quirk here.
Fortunately, no obvious performance regression was found by test and the
pre-existing similar catch-all timer for sdhci has proved it's an acceptant
way to make the code as robust as possible.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196321
Signed-off-by: Addy Ke <addy.ke@rock-chips.com>
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
[shawn.lin: rewrite the code and the commit msg throughout]
Change-Id: I47238c9758fe74b98a1dd3939f22e569261e696f
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from https://patchwork.kernel.org/patch/9834331/)
2017-07-12 19:28:06 +08:00
..
boot.h
card.h Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2017-05-06 14:23:00 +08:00
core.h Fix a build breakage in IO latency hist code. 2016-10-12 17:34:22 +05:30
dw_mmc.h BACKPORT: FROMLIST: mmc: dw_mmc: introduce timer for broken command transfer over scheme 2017-07-12 19:28:06 +08:00
host.h Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2016-11-04 14:30:24 +08:00
mmc.h Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2017-05-06 14:23:00 +08:00
pm.h mmc: Add "ignore mmc pm notify" functionality 2016-02-16 13:51:09 -08:00
rk_mmc.h mmc: rk_sdmmc: enhance recovery flow 2015-07-10 14:05:03 +08:00
sd.h
sdhci-pci-data.h mmc: sdhci-pci: Add support for drive strength selection for SPT 2015-06-01 09:07:14 +02:00
sdio.h
sdio_func.h mmc: Add sdio_readb_ext() function 2016-02-16 13:51:05 -08:00
sdio_ids.h brcmfmac: add support for BCM43430 SDIO chipset 2015-03-20 09:03:46 +02:00
sh_mmcif.h
sh_mobile_sdhi.h mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info 2015-03-05 21:54:26 +05:30
slot-gpio.h rk: temp revert rk change 2015-11-11 15:54:30 +08:00
tmio.h