summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/sdhci-pci-core.c
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2016-07-25 16:48:39 +0800
committerUlf Hansson <ulf.hansson@linaro.org>2016-07-25 11:11:08 +0200
commitbb4eecf23be259929f9e7d173890a83ae5f87d4c (patch)
tree9f308569724e9e5920ddbafc7bec978476c46cc4 /drivers/mmc/host/sdhci-pci-core.c
parent95cc46fee6e177668087f18549c07daec30c16c8 (diff)
downloadlinux-stable-bb4eecf23be259929f9e7d173890a83ae5f87d4c.tar.gz
linux-stable-bb4eecf23be259929f9e7d173890a83ae5f87d4c.tar.bz2
linux-stable-bb4eecf23be259929f9e7d173890a83ae5f87d4c.zip
mmc: Change the max discard sectors and erase response when HW busy detect
When mmc host HW supports busy signalling (using R1B as response), don't use the host->max_busy_timeout as the limitation when deciding the max discard sectors, which we inform the generic BLOCK layer about. Instead, let's use at least one preferred erase size as the max discard sectors. In cases when the host controller supports HW busy signalling and the timeout for the erase operation doesn't exceed the max_busy_timeout, we keep the R1B response, otherwise we prevent the host from doing HW busy detection by converting to a R1 response. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/sdhci-pci-core.c')
0 files changed, 0 insertions, 0 deletions