From 6b78c6e6d12e995fda7664e1741ab9f12fbb9850 Mon Sep 17 00:00:00 2001 From: Sahitya Tummala Date: Fri, 29 May 2015 15:41:18 +0530 Subject: [PATCH] mmc: cmdq_hci: Add DCMD response to mrq This will be needed by core layers to check the status for CMD13 that is sent in CMDQ mode. Change-Id: If3d062bad4cf87c2543e6d5345f9ab6a0afa23bf Signed-off-by: Sahitya Tummala --- drivers/mmc/host/cmdq_hci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mmc/host/cmdq_hci.c b/drivers/mmc/host/cmdq_hci.c index 00a065cfab8d..6c5951b51afa 100644 --- a/drivers/mmc/host/cmdq_hci.c +++ b/drivers/mmc/host/cmdq_hci.c @@ -597,6 +597,9 @@ static void cmdq_finish_data(struct mmc_host *mmc, unsigned int tag) struct cmdq_host *cq_host = (struct cmdq_host *)mmc_cmdq_private(mmc); mrq = get_req_by_tag(cq_host, tag); + if (tag == cq_host->dcmd_slot) + mrq->cmd->resp[0] = cmdq_readl(cq_host, CQCRDCT); + mrq->done(mrq); }