mmc: host: sdhci-sprd: Implement the request_atomic() API
authorBaolin Wang <baolin.wang7@gmail.com>
Mon, 13 Apr 2020 02:46:05 +0000 (10:46 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 May 2020 09:20:59 +0000 (11:20 +0200)
commit61ab64e2f54f4c607428667f83f411cb659843a3
tree3020dc34e522ddfee8616cece20da5fa1c55da33
parent48ef8a2a1e5e6a2a189009e880e341ddb452971d
mmc: host: sdhci-sprd: Implement the request_atomic() API

Implement the request_atomic() API for nonremovable cards, that means
we can submit next request in the irq hard handler context to reduce
latency.

Moreover factor out the AUTO CMD23 checking into a separate function
to reduce duplicate code.

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