OSDN Git Service

mmc: core: Remove non-data R1B ioctl workaround
authorChristian Löhle <CLoehle@hyperstone.com>
Sun, 27 Nov 2022 17:46:31 +0000 (17:46 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 7 Dec 2022 12:29:13 +0000 (13:29 +0100)
commite81bdae440fa7cc7dcbfb4f0fcfafb1f4350bc31
tree712525e1dd984e44bdaa0059f451cd4ff9f1604b
parentffbace4378dc1aedb02248bbbe5d231754e4df3a
mmc: core: Remove non-data R1B ioctl workaround

The workaround of pretending R1B non-data transfers are data transfers in
order for the busy timeout to be respected by the host controller driver is
removed. It wasn't useful in a long time.

Initially the workaround ensured that R1B commands did not time out by
setting the data timeout to be the command timeout in commit cb87ea28ed9e
("mmc: core: Add mmc CMD+ACMD passthrough ioctl"). This was moved inside an
if-clause with idata->buf_bytes being set in commit 4d6144de8ba2 ("mmc:
core: check for zero length ioctl data"). Since the workaround is now
inside the idata->buf_bytes clause and intended to fix R1B non-data
transfers, that do not have buf_bytes set, we can remove the workaround
altogether. This was dead code, since data transfers doesn't use R1B
commands.

Signed-off-by: Christian Loehle <cloehle@hyperstone.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/57d4aceb25254e448bd3e575bd99b0c2@hyperstone.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/block.c