]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: sh_mmcif: Use response type to know when to enable busy detection
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 21 Jun 2016 13:12:48 +0000 (15:12 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 25 Jul 2016 08:34:23 +0000 (10:34 +0200)
commit9b5dfd5a08244368f3b919027208ca5750424fe0
treec0d878cb5f7b7d28a1f3e0de3d4b3b2789e5c14b
parent337fae8c75b11347a8e8ea98a2b90bbb1c84f3df
mmc: sh_mmcif: Use response type to know when to enable busy detection

The sh_mmcif explicity checks for certain commands to decide when to
enable HW busy detection. Instead, it should only check the response type
as it tells if busy detection is needed.

In this way, the mmc core also gets full control whether it thinks busy
detection should be done or not. In some specific scenarios, like for
ERASE and STOP commands it may decide to fall back to use a CMD13 to poll
the card status instead.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sh_mmcif.c