From patchwork Fri Mar 11 11:01:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Francois Moine X-Patchwork-Id: 8564941 Return-Path: X-Original-To: patchwork-dmaengine@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 63C709F38C for ; Fri, 11 Mar 2016 11:35:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A34B7202B8 for ; Fri, 11 Mar 2016 11:35:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D2A9220272 for ; Fri, 11 Mar 2016 11:35:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752157AbcCKLfG (ORCPT ); Fri, 11 Mar 2016 06:35:06 -0500 Received: from smtp5-g21.free.fr ([212.27.42.5]:40215 "EHLO smtp5-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbcCKLfF (ORCPT ); Fri, 11 Mar 2016 06:35:05 -0500 Received: from localhost (unknown [IPv6:2a01:e35:2f5c:9de0:6b55:87da:4920:b782]) by smtp5-g21.free.fr (Postfix) with ESMTP id 3ADBAD4802D; Fri, 11 Mar 2016 12:31:05 +0100 (CET) X-Mailbox-Line: From 7898ac737e1cce9542de662f1266d94bd451659e Mon Sep 17 00:00:00 2001 Message-Id: <7898ac737e1cce9542de662f1266d94bd451659e.1457695169.git.moinejf@free.fr> In-Reply-To: References: From: Jean-Francois Moine Date: Fri, 11 Mar 2016 12:01:29 +0100 Subject: [PATCH v2 3/5] dmaengine: sun6i: Add 4 as a possible burst value To: Vinod Koul , Maxime Ripard , Chen-Yu Tsai Cc: Jens Kuske , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Some DMA transfers, as for H3 audio, ask for 4 as a burst value. Signed-off-by: Jean-Francois Moine --- drivers/dma/sun6i-dma.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/sun6i-dma.c b/drivers/dma/sun6i-dma.c index 3579ee7..7c98c0d 100644 --- a/drivers/dma/sun6i-dma.c +++ b/drivers/dma/sun6i-dma.c @@ -238,6 +238,8 @@ static inline s8 convert_burst(u32 maxburst) switch (maxburst) { case 1: return 0; + case 4: + return 1; case 8: return 2; default: