]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: host: sdhci: Implement the request_atomic() API
authorBaolin Wang <baolin.wang7@gmail.com>
Mon, 13 Apr 2020 02:46:04 +0000 (10:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:59 +0000 (11:20 +0200)
commita76f2232c305a8bbe919be88982a73029c403955
tree921ffed1200ab3219713e5d2bb92ac38c9572ca8
parent1a502eb27088e02ba0f34e0be9fb1c543709330b
mmc: host: sdhci: Implement the request_atomic() API

Implement the request_atomic() ops for the sdhci driver to process
one request in the atomic context if the card is nonremovable.

Moreover, we should return BUSY flag if controller has not released
the inhibit bits to allow HSQ trying to send request again in non-atomic
context.

Suggested-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/9ed34afa9fb42e0c234065cac5401d7826942b55.1586744073.git.baolin.wang7@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci.c
drivers/mmc/host/sdhci.h