From patchwork Fri May 16 19:46:07 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 30346 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5D51520A25 for ; Fri, 16 May 2014 19:46:15 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rq2sf15230978pbb.5 for ; Fri, 16 May 2014 12:46:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=0D6lR77cjKOZC9IfyrTsHemijLWfUnvGmPFQRLaUbuM=; b=H7C1UwdVy7eDs/l9xlvTjbl7QP11hS8+R/Z8WlkLHPyG2tgNPopBchVgbN0TYhbJMo pK4gb2jaqOhuzdhl9jt/xYz2umXMaHQqUO3nugL0NBBoE9Jsa261/HtMyA0gcoH9/ATp yGkHSelvlH3XgbvijJeJErtbwVGMe84ua+5Z3T0xGeNu0ofg0yUkmhvgoHWeAvLn2UXP CAuZTqVW/iOxWkEQ3Piwez4AuM2VS6sNPZ21W7yUd7nrUuBCXGJ/UUt4oMHf/f5BSGoG ZpgS6NjPO82DqbTsr5klGHnj+4Pr411gLvBMwI9HQzPVqLFw6cezqJM1+iGYiP+7GbGd nN7g== X-Gm-Message-State: ALoCoQlSd+ow6mCMwsNns1im5sBzVpbA4v1VWdSnAUbHlCeqmCzvWPlZ5PisoH8B1GZqR4n/0ZrF X-Received: by 10.66.232.38 with SMTP id tl6mr6995417pac.33.1400269574696; Fri, 16 May 2014 12:46:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.102.180 with SMTP id w49ls873444qge.3.gmail; Fri, 16 May 2014 12:46:14 -0700 (PDT) X-Received: by 10.52.104.7 with SMTP id ga7mr13181968vdb.29.1400269574570; Fri, 16 May 2014 12:46:14 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id ti7si1848731veb.93.2014.05.16.12.46.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 May 2014 12:46:14 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id jw12so3681196veb.19 for ; Fri, 16 May 2014 12:46:14 -0700 (PDT) X-Received: by 10.52.147.170 with SMTP id tl10mr8035812vdb.14.1400269574485; Fri, 16 May 2014 12:46:14 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp78822vcb; Fri, 16 May 2014 12:46:13 -0700 (PDT) X-Received: by 10.66.231.237 with SMTP id tj13mr23574820pac.136.1400269572880; Fri, 16 May 2014 12:46:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ro7si10255501pab.172.2014.05.16.12.46.12; Fri, 16 May 2014 12:46:12 -0700 (PDT) Received-SPF: none (google.com: linux-arm-msm-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992477AbaEPTqL (ORCPT + 3 others); Fri, 16 May 2014 15:46:11 -0400 Received: from mail-we0-f170.google.com ([74.125.82.170]:59741 "EHLO mail-we0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2992456AbaEPTqL (ORCPT ); Fri, 16 May 2014 15:46:11 -0400 Received: by mail-we0-f170.google.com with SMTP id u57so3082207wes.1 for ; Fri, 16 May 2014 12:46:09 -0700 (PDT) X-Received: by 10.180.84.129 with SMTP id z1mr37634154wiy.8.1400269569808; Fri, 16 May 2014 12:46:09 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-78-144-123-164.as13285.net. [78.144.123.164]) by mx.google.com with ESMTPSA id k2sm3075712wjq.20.2014.05.16.12.46.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 16 May 2014 12:46:09 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: agross@quicinc.com Cc: linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH RFC 4/4] mmc: mmci: do an EOT for write DMA requests. Date: Fri, 16 May 2014 20:46:07 +0100 Message-Id: <1400269567-15574-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1400269500-15408-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1400269500-15408-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Srinivas Kandagatla 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 --- 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",