diff options
author | Kishon Vijay Abraham I <kishon@ti.com> | 2017-01-30 11:11:57 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-02-13 13:20:55 +0100 |
commit | 8cc9a3e73de1264cb61d8eca4e15310f3b2b9746 (patch) | |
tree | a1993b695367cde685aeda6d99e02249314a1d01 /include/sound/hda_verbs.h | |
parent | mmc: host: omap_hsmmc: reset cmd line on ceb error (diff) | |
download | linux-8cc9a3e73de1264cb61d8eca4e15310f3b2b9746.tar.xz linux-8cc9a3e73de1264cb61d8eca4e15310f3b2b9746.zip |
mmc: host: omap_hsmmc: use generic_cmd6_time to program timeout value for CMD6
commit e2bf08d643a244ccb ("omap_hsmmc: set a large data timeout for
commands with busy signal") sets an arbitrary timeout value (100ms) for
commands like CMD6 (MMC SWITCH). However extended CSD register defined
in the eMMC standard has a field for GENERIC_CMD6_TIME which indicates
the default maximum timeout for a SWITCH command.
Use busy_timeout of cmd structure (populated with GENERIC_CMD6_TIME
in the case of SWITCH command) to program the data timeout value in
omap_hsmmc driver.
SWITCH command to turn the cache on took more than 100ms to complete
with MICRON eMMC card present in AM572x IDK REV 1.3A resulting in
timeout and failed enumeration. It is fixed here by programming the
timeout with the value advertised in GENERIC_CMD6_TIME.
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Ravikumar Kattekola <rk@ti.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'include/sound/hda_verbs.h')
0 files changed, 0 insertions, 0 deletions