Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3c86f3f6 authored by Ritesh Harjani's avatar Ritesh Harjani Committed by Ram Prakash Gupta
Browse files

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: default avatarRitesh Harjani <riteshh@codeaurora.org>
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 74f401c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment