OSDN Git Service

mmc: core: Check re-tuning before retrying
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 20 Apr 2015 12:09:45 +0000 (15:09 +0300)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 28 Apr 2015 17:04:46 +0000 (01:04 +0800)
commitdec0c45113e3e0e47d509164937ec93ea5e90eb9
tree52a89c56b94ae23ae83f4ec3723bffd8b37cab86
parent1cc8530c2683a5f6b6bc2ac5810e60d8d7d22a0f
mmc: core: Check re-tuning before retrying

Possibly a command is failing because re-tuning is needed.
Use mmc_retune_recheck() to check re-tuning. At that point
re-tuning is held, at least by the request, so
mmc_retune_recheck() flags host->retune_now if the hold
count is 1.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
drivers/mmc/core/core.c