]> 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)
commitd6e3de3ee3525ff1671d207eeb07de1883a98548
treec0d878cb5f7b7d28a1f3e0de3d4b3b2789e5c14b
parentf643586f40dac2191dc383e21ee36a2f59cbd5bf
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