android_kernel_asus_sm8350/include/linux/mmc
Baolin Wang 9cd06c93af FROMGIT: mmc: host: Introduce the request_atomic() for the host
The SD host controller can process one request in the atomic context if
the card is nonremovable, which means we can submit next request in the
irq hard handler when using the MMC host software queue to reduce the
latency. Thus this patch adds a new API request_atomic() for the host
controller, as well as adding support for host software queue to submit
a request by the new request_atomic() API.

Moreover there is an unusual case that the card is busy when trying to
send a command, and we can not polling the card status in interrupt
context by using request_atomic() to dispatch requests. Thus we should
queue a work to try again in the non-atomic context in case the host
releases the busy signal later.

Suggested-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Baolin Wang <baolin.wang7@gmail.com>
Link: https://lore.kernel.org/r/a344e27e506cb2329073cbd5cf65e15cc3cbeba9.1586744073.git.baolin.wang7@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Bug: 156552982
(cherry picked from commit ea43849795c985cddf332a29882082c0992e1222
 https://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc.git next)
Change-Id: I46e71706ccb9762b61defd17c9928c24e190d450
Signed-off-by: Chunyan Zhang <zhang.lyra@gmail.com>
2020-05-14 11:43:05 +00:00
..
card.h mmc: core: Re-work HW reset for SDIO cards 2019-12-21 11:04:24 +01:00
core.h ANDROID: mmc: MMC crypto API 2020-04-23 20:45:48 +00:00
host.h FROMGIT: mmc: host: Introduce the request_atomic() for the host 2020-05-14 11:43:05 +00:00
mmc.h
pm.h Linux 5.2-rc6 2019-06-23 07:22:28 +02:00
sd.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sdhci-pci-data.h
sdio_func.h mmc: core: Add sdio_retune_hold_now() and sdio_retune_release() 2019-06-18 13:30:32 +02:00
sdio_ids.h mmc: sdio: fix wl1251 vendor id 2020-01-26 10:01:07 +01:00
sdio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
sh_mmcif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 178 2019-05-30 11:29:19 -07:00
slot-gpio.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00