From patchwork Tue Dec 13 13:40:51 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: M'boumba Cedric Madianga X-Patchwork-Id: 9472281 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 571166021C for ; Tue, 13 Dec 2016 13:41:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4A86D28210 for ; Tue, 13 Dec 2016 13:41:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 363A428589; Tue, 13 Dec 2016 13:41:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7C922851B for ; Tue, 13 Dec 2016 13:41:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933115AbcLMNl2 (ORCPT ); Tue, 13 Dec 2016 08:41:28 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35431 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933157AbcLMNlV (ORCPT ); Tue, 13 Dec 2016 08:41:21 -0500 Received: by mail-wm0-f65.google.com with SMTP id a20so18511494wme.2; Tue, 13 Dec 2016 05:41:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+BWIvMPBkmbcYh5bnW0FwmljIiucd2wbcqG305ekHUs=; b=YHqCr3Dzf0a+KaNptNMFzCytFqcxTrrsZh5okdnZC6VWYDDyiH6+fcoXrN5sgUGjKl PNWRmSnBg6qUL7iElb+EusyJDHFR1fjyjQYIS3XMgx78S9x/sK+c9RyayLfTTW4glfV2 +MlABGfEzX31rGXoNpgLGws3yOcjvvmTWqtn0oCzbP32LO9GTQ40AwVjxhjb6Syu5lEC 9dNj3obaPrvkeSNkNn5QOSWKLNO7CuhpkqEchX8xqWaVbwx6yNCFDCiUvSuaTvIrRjrY 6ZY3GcqX1OJHX856Qs1ic0XYdKrSe92rqFgg807vpV70Rn2sFGHnt++2rEeGq11bu+kD +UtQ== 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=+BWIvMPBkmbcYh5bnW0FwmljIiucd2wbcqG305ekHUs=; b=FFzUHHWI7M/hXhwlbtV0AEl5Cc4HYpHXsLoplXDQ1z58MufAu4iMVW3rybpAsjEvoP m35+mpM0UwiwN6aHvClM63JcUkwPY0jHC7IU8dU+9SR4FNA2RjwypDAGU2jd3LHaDTwc QiWz+3IZtYtSsnH1XWa86/rLgBI3SHL3LHHrpSXENCbU9Db3QKwarPuWVOxPJVD52Pgh mj6ZBxt1bEDGKzkxhh2GoSf6L8ZuA18MCLTUp8OJcdoi+C/bO64BAPQ/WcdkGklJbq4r zm/rmnygkFXbkExbTTg3P2AaoRt6PPewUdwE6NaRXmr8cTUEsi9A4jXOyjKfaMRBxIj4 MxbQ== X-Gm-Message-State: AKaTC02xaEiLVevjEmGdWKfu0NtU2yGjMCB+K84Ojj0MrLrk3hyL8c4jgs6aW3pMHKQgRQ== X-Received: by 10.28.91.143 with SMTP id p137mr2902899wmb.51.1481636479557; Tue, 13 Dec 2016 05:41:19 -0800 (PST) Received: from lmenx29w.st.com. ([80.215.199.148]) by smtp.gmail.com with ESMTPSA id vr9sm62269846wjc.35.2016.12.13.05.41.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Dec 2016 05:41:18 -0800 (PST) From: M'boumba Cedric Madianga To: vinod.koul@intel.com, robh+dt@kernel.org, mark.rutland@arm.com, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, dan.j.williams@intel.com, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: M'boumba Cedric Madianga Subject: [PATCH 9/9] dmaengine: stm32-dma: Add max_burst support Date: Tue, 13 Dec 2016 14:40:51 +0100 Message-Id: <1481636451-27863-10-git-send-email-cedric.madianga@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1481636451-27863-1-git-send-email-cedric.madianga@gmail.com> References: <1481636451-27863-1-git-send-email-cedric.madianga@gmail.com> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch sets the max_burst value supported by the STM32 DMA Signed-off-by: M'boumba Cedric Madianga --- drivers/dma/stm32-dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index b7be43a..49f86ca 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c @@ -114,6 +114,7 @@ #define STM32_DMA_MAX_CHANNELS 0x08 #define STM32_DMA_MAX_REQUEST_ID 0x08 #define STM32_DMA_MAX_DATA_PARAM 0x03 +#define STM32_DMA_MAX_BURST 16 enum stm32_dma_width { STM32_DMA_BYTE, @@ -1084,6 +1085,7 @@ static int stm32_dma_probe(struct platform_device *pdev) BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); dd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); dd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; + dd->max_burst = STM32_DMA_MAX_BURST; dd->dev = &pdev->dev; INIT_LIST_HEAD(&dd->channels);