From patchwork Thu May 26 06:31:32 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shawn Guo X-Patchwork-Id: 1640 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:53:44 -0000 Delivered-To: patches@linaro.org Received: by 10.52.181.230 with SMTP id dz6cs3550vdc; Wed, 25 May 2011 23:27:00 -0700 (PDT) Received: by 10.216.245.4 with SMTP id n4mr5429629wer.83.1306391219683; Wed, 25 May 2011 23:26:59 -0700 (PDT) Received: from DB3EHSOBE001.bigfish.com (db3ehsobe001.messaging.microsoft.com [213.199.154.139]) by mx.google.com with ESMTPS id l2si690981wed.21.2011.05.25.23.26.59 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 May 2011 23:26:59 -0700 (PDT) Received-SPF: neutral (google.com: 213.199.154.139 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) client-ip=213.199.154.139; Authentication-Results: mx.google.com; spf=neutral (google.com: 213.199.154.139 is neither permitted nor denied by best guess record for domain of shawn.guo@linaro.org) smtp.mail=shawn.guo@linaro.org Received: from mail65-db3-R.bigfish.com (10.3.81.252) by DB3EHSOBE001.bigfish.com (10.3.84.21) with Microsoft SMTP Server id 14.1.225.22; Thu, 26 May 2011 06:26:58 +0000 Received: from mail65-db3 (localhost.localdomain [127.0.0.1]) by mail65-db3-R.bigfish.com (Postfix) with ESMTP id 91466E05A1; Thu, 26 May 2011 06:26:58 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPVD:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail65-db3 (localhost.localdomain [127.0.0.1]) by mail65-db3 (MessageSwitch) id 1306391218403753_14144; Thu, 26 May 2011 06:26:58 +0000 (UTC) Received: from DB3EHSMHS010.bigfish.com (unknown [10.3.81.254]) by mail65-db3.bigfish.com (Postfix) with ESMTP id 5E03415F804F; Thu, 26 May 2011 06:26:58 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by DB3EHSMHS010.bigfish.com (10.3.87.110) with Microsoft SMTP Server (TLS) id 14.1.225.22; Thu, 26 May 2011 06:26:58 +0000 Received: from az33smr02.freescale.net (10.64.34.200) by 039-SN1MMR1-003.039d.mgd.msft.net (10.84.1.16) with Microsoft SMTP Server id 14.1.270.2; Thu, 26 May 2011 01:26:56 -0500 Received: from S2100-06.ap.freescale.net (S2100-06.ap.freescale.net [10.192.242.125]) by az33smr02.freescale.net (8.13.1/8.13.0) with ESMTP id p4Q6QpUP026468; Thu, 26 May 2011 01:26:54 -0500 (CDT) From: Shawn Guo To: CC: , , , , Shawn Guo Subject: [PATCH 2/3] dmaengine: mxs-dma: set up max_segment_number Date: Thu, 26 May 2011 14:31:32 +0800 Message-ID: <1306391493-29425-2-git-send-email-shawn.guo@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1306391493-29425-1-git-send-email-shawn.guo@linaro.org> References: <1306391493-29425-1-git-send-email-shawn.guo@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com 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;