From patchwork Mon Jun 6 07:30:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 1752 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:55:23 -0000 Delivered-To: patches@linaro.org Received: by 10.52.181.10 with SMTP id ds10cs14869vdc; Mon, 6 Jun 2011 00:22:40 -0700 (PDT) Received: by 10.150.63.5 with SMTP id l5mr3927358yba.372.1307344960484; Mon, 06 Jun 2011 00:22:40 -0700 (PDT) Received: from mail-pz0-f50.google.com (mail-pz0-f50.google.com [209.85.210.50]) by mx.google.com with ESMTPS id ln4si3526648icb.138.2011.06.06.00.22.40 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Jun 2011 00:22:40 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=209.85.210.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.50 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: by pzk2 with SMTP id 2so1945481pzk.37 for ; Mon, 06 Jun 2011 00:22:39 -0700 (PDT) Received: by 10.68.2.129 with SMTP id 1mr1532915pbu.145.1307344959625; Mon, 06 Jun 2011 00:22:39 -0700 (PDT) Received: from localhost.localdomain ([114.216.154.92]) by mx.google.com with ESMTPS id w2sm3488934pbg.37.2011.06.06.00.21.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Jun 2011 00:22:39 -0700 (PDT) From: Shawn Guo To: linux-kernel@vger.kernel.org Cc: vinod.koul@intel.com, dan.j.williams@intel.com, cjb@laptop.org, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@linaro.org, Shawn Guo Subject: [PATCH v2 2/3] dmaengine: mxs-dma: set up max_segment_number Date: Mon, 6 Jun 2011 15:30:13 +0800 Message-Id: <1307345414-26872-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1307345414-26872-1-git-send-email-shawn.guo@linaro.org> References: <1307345414-26872-1-git-send-email-shawn.guo@linaro.org> It calls dmaengine API dma_set_max_seg_number to set device_dma_parameters max_segment_number. Signed-off-by: Shawn Guo --- drivers/dma/mxs-dma.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/dma/mxs-dma.c b/drivers/dma/mxs-dma.c index 88aad4f..875d8f6 100644 --- a/drivers/dma/mxs-dma.c +++ b/drivers/dma/mxs-dma.c @@ -670,6 +670,7 @@ static int __init mxs_dma_probe(struct platform_device *pdev) /* mxs_dma gets 65535 bytes maximum sg size */ mxs_dma->dma_device.dev->dma_parms = &mxs_dma->dma_parms; dma_set_max_seg_size(mxs_dma->dma_device.dev, MAX_XFER_BYTES); + dma_set_max_seg_number(mxs_dma->dma_device.dev, NUM_CCW); mxs_dma->dma_device.device_alloc_chan_resources = mxs_dma_alloc_chan_resources; mxs_dma->dma_device.device_free_chan_resources = mxs_dma_free_chan_resources;