summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSahitya Tummala <stummala@codeaurora.org>2016-04-26 09:12:44 +0530
committerKyle Yan <kyan@codeaurora.org>2016-06-13 19:06:27 -0700
commit31c3678a627a612ab863fde1108fd8bc3d16faa8 (patch)
treec1bd0daa9a30ee0ba97c14e4423d4cd2dbf293d7 /drivers
parent876f79209224820132dbea19e7b9e0bf9f0ac948 (diff)
mmc: cmdq_hci: disable CDR in CQ mode
The CDR is supposed to be enabled only for read commands but since there is no way it can be done in CQ, disable it completely in CQ mode. The CDR gets enabled by default whenever tuning is done in legacy mode. Hence, make sure to disable it when CQ is enabled or when CQ is unhalted. Also note that CDR plays a role only in these bus speed modes - HS200 and HS400 with enhanced strobe disabled. Change-Id: Ie3917ac9b573dfef514f82e5073d1c480cd9a71d Signed-off-by: Sahitya Tummala <stummala@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/host/cmdq_hci.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/cmdq_hci.c b/drivers/mmc/host/cmdq_hci.c
index 458f83ac64d8..0e0a018f39be 100644
--- a/drivers/mmc/host/cmdq_hci.c
+++ b/drivers/mmc/host/cmdq_hci.c
@@ -408,6 +408,9 @@ static int cmdq_enable(struct mmc_host *mmc)
cq_host->enabled = true;
mmc_host_clr_cq_disable(mmc);
+ if (cq_host->ops->set_transfer_params)
+ cq_host->ops->set_transfer_params(mmc);
+
if (cq_host->ops->set_block_size)
cq_host->ops->set_block_size(cq_host->mmc);