mmc: mediatek: Move cqhci init behind ungate clock
authorWenbin Mei <wenbin.mei@mediatek.com>
Thu, 28 Oct 2021 02:20:49 +0000 (10:20 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 28 Oct 2021 09:55:20 +0000 (11:55 +0200)
commite8a1ff65927080278e6826f797b7c197fb2611a6
tree61d389dc40ee1e32e9118c08bb0b1d8c9b238acd
parent92b18252b91de567cd875f2e84722b10ab34ee28
mmc: mediatek: Move cqhci init behind ungate clock

We must enable clock before cqhci init, because crypto needs read
information from CQHCI registers, otherwise, it will hang in MediaTek mmc
host controller.

Signed-off-by: Wenbin Mei <wenbin.mei@mediatek.com>
Fixes: 88bd652b3c74 ("mmc: mediatek: command queue support")
Cc: stable@vger.kernel.org
Acked-by: Chaotian Jing <chaotian.jing@mediatek.com>
Link: https://lore.kernel.org/r/20211028022049.22129-1-wenbin.mei@mediatek.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mtk-sd.c