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)
commit48ef8a2a1e5e6a2a189009e880e341ddb452971d
tree921ffed1200ab3219713e5d2bb92ac38c9572ca8
parent6db96e5810e0a6a345b7d78549de7676ae5b2662
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