]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mediatek: add pre_enable() and post_disable() hook function
authorChun-Hung Wu <chun-hung.wu@mediatek.com>
Thu, 27 Aug 2020 09:33:03 +0000 (17:33 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 7 Sep 2020 07:11:31 +0000 (09:11 +0200)
commit352bc5acfd79a4b367e59ae95dfa46e017dfe816
treeff9485516046451cb85576370e86947aaca02225
parentfe4fe62a007a72b18356a8bb6f89f325c52fe776
mmc: mediatek: add pre_enable() and post_disable() hook function

CQHCI_ENABLE bit in CQHCI_CFG should be disabled
after msdc_cqe_disable(), and should be enabled before
msdc_ceq_enable() for MTK platform.
Add hook functions for cqhci_host_ops->pre_enable() and
cqhci_host_ops->post_disable().

Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/1598520783-25250-3-git-send-email-chun-hung.wu@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c