diff options
| author | Dong Aisheng <aisheng.dong@nxp.com> | 2016-04-21 00:51:30 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-03 06:23:18 +0200 |
| commit | 1394b1bdfd00560beb1b1ea20b75ee1734007ac8 (patch) | |
| tree | d49519cdbb6ea3ed226299bc62c4d031edefc7e8 /tools | |
| parent | aa8b7ed2168510efcf40f4efaa3fbc794ea4003f (diff) | |
mmc: core: fix using wrong io voltage if mmc_select_hs200 fails
commit e51534c806609c806d81bfb034f02737461f855c upstream.
Currently MMC core will keep going if HS200/HS timing switch failed
with -EBADMSG error by the assumption that the old timing is still valid.
However, for mmc_select_hs200 case, the signal voltage may have already
been switched. If the timing switch failed, we should fall back to
the old voltage in case the card is continue run with legacy timing.
If fall back signal voltage failed, we explicitly report an EIO error
to force retry during the next power cycle.
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
