]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: core: Allow host controllers to require R1B for CMD6
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 24 Mar 2020 18:07:34 +0000 (19:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Apr 2020 09:01:27 +0000 (11:01 +0200)
commit763faa425ad33800326c83062c40f8db6eb2ee6c
tree2b27cf977f1f9405e5e3cc7f7c7ad76364260bcf
parent7d39cca939275c9992ddf48ba61b5facf0c3ff45
mmc: core: Allow host controllers to require R1B for CMD6

[ Upstream commit 61211edc3e0816129bf0aee5929ee09d53457874 ]

It has turned out that some host controllers can't use R1B for CMD6 and
other commands that have R1B associated with them. Therefore invent a new
host cap, MMC_CAP_NEED_RSP_BUSY to let them specify this.

In __mmc_switch(), let's check the flag and use it to prevent R1B responses
from being converted into R1. Note that, this also means that the host are
on its own, when it comes to manage the busy timeout.

Suggested-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Cc: <stable@vger.kernel.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Tested-by: Sowjanya Komatineni <skomatineni@nvidia.com>
Tested-by: Faiz Abbas <faiz_abbas@ti.com>
Tested-By: Peter Geis <pgwipeout@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mmc/core/mmc_ops.c
include/linux/mmc/host.h