linux-arm-msm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: srinivas.kandagatla@linaro.org
To: agross@quicinc.com
Cc: linux-arm-msm@vger.kernel.org,
	Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Subject: [PATCH RFC 4/4] mmc: mmci: do an EOT for write DMA requests.
Date: Fri, 16 May 2014 20:46:07 +0100	[thread overview]
Message-ID: <1400269567-15574-1-git-send-email-srinivas.kandagatla@linaro.org> (raw)
In-Reply-To: <1400269500-15408-1-git-send-email-srinivas.kandagatla@linaro.org>

From: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

This patch adds an hack to get the BAM working. In general generic
drivers are not allowed to call SOC specific functions, but as this is
just an hack for demo.

Currently, Andy Gross is looking at, how to expose this function in more
generic way.

Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
---
 drivers/mmc/host/mmci.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 847a4ba..5ba8c80 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -652,6 +652,7 @@ static inline int mmci_dma_prep_next(struct mmci_host *host,
 	return __mmci_dma_prep_data(host, data, &nd->dma_chan, &nd->dma_desc);
 }
 
+extern void qcom_bam_set_desc_eot(struct dma_async_tx_descriptor *txd);
 static int mmci_dma_start_data(struct mmci_host *host, unsigned int datactrl)
 {
 	int ret;
@@ -661,6 +662,9 @@ static int mmci_dma_start_data(struct mmci_host *host, unsigned int datactrl)
 	if (ret)
 		return ret;
 
+	if (data->flags & MMC_DATA_WRITE)
+		qcom_bam_set_desc_eot(host->dma_desc_current);
+
 	/* Okay, go for it. */
 	dev_vdbg(mmc_dev(host->mmc),
 		 "Submit MMCI DMA job, sglen %d blksz %04x blks %04x flags %08x\n",
-- 
1.9.1

      parent reply	other threads:[~2014-05-16 19:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-16 19:45 [PATCH RFC 0/4] Add QCOM DML support to MMCI driver srinivas.kandagatla
2014-05-16 19:45 ` [PATCH RFC 1/4] ARM: DT: QCOM: apq8064: fix the memory range for sdcc node srinivas.kandagatla
2014-05-16 19:45 ` [PATCH RFC 2/4] ARM: DT: QCOM: apq8064: Add dma support " srinivas.kandagatla
2014-05-16 19:47   ` Srinivas Kandagatla
2014-05-16 19:46 ` [PATCH RFC 3/4] mmc: mmci: Add qcom dml support to the driver srinivas.kandagatla
2014-05-16 19:46 ` srinivas.kandagatla [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1400269567-15574-1-git-send-email-srinivas.kandagatla@linaro.org \
    --to=srinivas.kandagatla@linaro.org \
    --cc=agross@quicinc.com \
    --cc=linux-arm-msm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).