mmc: mediatek: command queue support
authorChun-Hung Wu <chun-hung.wu@mediatek.com>
Mon, 20 Jul 2020 00:42:38 +0000 (08:42 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Fri, 24 Jul 2020 10:53:33 +0000 (12:53 +0200)
commit88bd652b3c74997bb436adf6131acf445066243e
tree5c3724b0a8aaac83b06e4e111b55f9ddb8676aec
parent557011b6b8c87c10d8bd2ec4366d4b2a0614ffc8
mmc: mediatek: command queue support

Support command queue for mt6779 platform.
a. Add msdc_set_busy_timeout() to calculate emmc write timeout.
b. Connect mtk msdc driver to cqhci driver through
   host->cq_host->ops = &msdc_cmdq_ops;
c. msdc_cmdq_irq() will link up with cqchi_irq(). Besides, it provides
   more irq error messages like RSPCRCERR/CMDTO/DATACRCERR/DATTMO.
d. Select kernel config MMC_CQHCI for MMC_MTK

Signed-off-by: Chun-Hung Wu <chun-hung.wu@mediatek.com>
Acked-by: Yong Mao <yong.mao@mediatek.com>
Link: https://lore.kernel.org/r/1595205759-5825-4-git-send-email-chun-hung.wu@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/Kconfig
drivers/mmc/host/mtk-sd.c