From patchwork Fri Jan 22 11:06:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 8089051 Return-Path: X-Original-To: patchwork-linux-rockchip@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5FF3FBEEED for ; Fri, 22 Jan 2016 11:09:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7B82F203AE for ; Fri, 22 Jan 2016 11:09:16 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A38152039E for ; Fri, 22 Jan 2016 11:09:15 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aMZac-00029B-V4; Fri, 22 Jan 2016 11:09:14 +0000 Received: from mail-pa0-f65.google.com ([209.85.220.65]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aMZa0-0001RP-Jo for linux-rockchip@lists.infradead.org; Fri, 22 Jan 2016 11:08:39 +0000 Received: by mail-pa0-f65.google.com with SMTP id pv5so3047121pac.0 for ; Fri, 22 Jan 2016 03:08:16 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UARP1uw3FuTxORGGlQaiWOYOVsNZnFZlot4Qw5S/V5c=; b=ac3id539/x+eh47Fpa7lZUrsY382gxhC3woPT2KypajhVOqKcLAf5wGi6j9DcR1gaD xXzFQGX6QGQ5NlPW1GsBASIt7znFmYUGPyhnsRkxFJxg6TMr/59rUFjiejbC6Mj7Qidz HUz3yFOrZzHcDyd0h7s9SsSPNFI4Jnxah7uC/TOmkPknI2QSYuVUtD/mnkX4o9NH3ZZZ SGVIIyNWJx95rjkXzBpkZRaisEdPwskTLWoZg8Fp7uHDUKnuafdC9rj9+85RjnSEuHZ7 50leWOKzGy/eXve4MoHXC4dbDccPymOq9S4mvzeZMve0T8xnb80YQwk8nw3Wwlyb22y3 BC4A== X-Gm-Message-State: AG10YOSEhDsB128DDC3gJUEfkYIO8VxS/sfCQtO+PPId0h5w4aAW8iCH4pybe3UkdevmwA== X-Received: by 10.66.253.97 with SMTP id zz1mr3493228pac.106.1453460895664; Fri, 22 Jan 2016 03:08:15 -0800 (PST) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id v2sm8931895pfi.93.2016.01.22.03.08.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Jan 2016 03:08:14 -0800 (PST) From: Caesar Wang To: Heiko Stuebner , Vinod Koul Subject: [PATCH v7 8/9] dmaengine: pl330: add max burst for dmaengine Date: Fri, 22 Jan 2016 19:06:51 +0800 Message-Id: <1453460812-8498-9-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1453460812-8498-1-git-send-email-wxt@rock-chips.com> References: <1453460812-8498-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160122_030836_975115_89D9CF70 X-CRM114-Status: UNSURE ( 8.94 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.4 (--) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: shawn.lin@rock-chips.com, dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, dmaengine@vger.kernel.org, Dan Williams , Sonny Rao , Caesar Wang MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Shawn Lin This patch add max burst capability for dmaengine and limit burst capability to one for PL330_QUIRK_BROKEN_NO_FLUSHP Signed-off-by: Shawn Lin Signed-off-by: Caesar Wang --- Changes in v7: - fix the subject. Changes in v6: - remove expose quirks and add max_burst for dmaengine Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None Changes in v1: None drivers/dma/pl330.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 008408d..1b0453b 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -33,6 +33,7 @@ #define PL330_MAX_CHAN 8 #define PL330_MAX_IRQS 32 #define PL330_MAX_PERI 32 +#define PL330_MAX_BURST 16 #define PL330_QUIRK_BROKEN_NO_FLUSHP BIT(0) @@ -2938,6 +2939,8 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id) pd->dst_addr_widths = PL330_DMA_BUSWIDTHS; pd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); pd->residue_granularity = DMA_RESIDUE_GRANULARITY_SEGMENT; + pd->max_burst = ((pl330->quirks & PL330_QUIRK_BROKEN_NO_FLUSHP) ? + 1 : PL330_MAX_BURST); ret = dma_async_device_register(pd); if (ret) {