mmc: sdhci-msm: Add CQHCI support for sdhci-msm
This change is part of mmc driver porting to enable command queue. mmc: cqhci: Move CQHCI_ENABLE before setting TDLBA/TDLBAU Without this patch the CQHCI registers are getting reset again. This adds CQHCI support for sdhci-msm platforms. mmc: sdhci-msm: Change the desc_sz on cqe_enable/disable. When CMDQ is halted the HW expects descriptor size to be same which is using in CMDQ mode. Thus adjust the desc_sz of sdhci accordingly. Without this patch below command gives ADMA error when CQE is enabled. cat /sys/kernel/debug/mmc0/mmc0:0001/ext_csd mmc: sdhci-msm: Handle unexpected interrupt case on CQE halt There is a case when enabling the legacy IRQs and halting CQE is resuling into a command response interrupt without any command in progress. This patch handles such case here. Error signature without this patch:- mmc0: Got command interrupt 0x00000001 even though no command operation was in progress. Change-Id: I7f278d4547b7aa26590a1b60258b0f567a126893 Signed-off-by:Ritesh Harjani <riteshh@codeaurora.org> Signed-off-by:
Ram Prakash Gupta <rampraka@codeaurora.org>
Loading
Please register or sign in to comment