From patchwork Fri Jan 13 15:02:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 9515795 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 493F9601DA for ; Fri, 13 Jan 2017 15:02:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D29928671 for ; Fri, 13 Jan 2017 15:02:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31D51286DE; Fri, 13 Jan 2017 15:02:20 +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_SIGNED, 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 E361A28671 for ; Fri, 13 Jan 2017 15:02:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751881AbdAMPCO (ORCPT ); Fri, 13 Jan 2017 10:02:14 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:32967 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751828AbdAMPCN (ORCPT ); Fri, 13 Jan 2017 10:02:13 -0500 Received: by mail-lf0-f52.google.com with SMTP id k86so39655198lfi.0 for ; Fri, 13 Jan 2017 07:02:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=p8BUsbHJWh8O51Dj3ngR7RfNf69pcvLGAEvER3CqAfY=; b=Vc4E6Y1Yfe1h7xotlottF+WV3tDSusZc9uGh7WNL9GlOLZmI7+fZUjMA0fxcdTIAaD VwQLVcLiZhoodkKExJJqgjmfSYqXksu6VKVK19fJy7t7ooJ7ZQcpZF0CrjXKLzLOXqYB yfzWFDObYSbk5zpFUEl6qyTJNRVcw2lLOgNG0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=p8BUsbHJWh8O51Dj3ngR7RfNf69pcvLGAEvER3CqAfY=; b=BlakcvNcEaPYWGOxORKh2JeRsAgw5aamg3JJfrkyC28qEeKJVspuj5y8cCfG+0hGa8 oI6raJX0WOgUadL1a6kJUlr9mi+G5lwT6iOsMCaDXLLM90MYQiuDNcxzcwh6qG2vS5OB gt+lRITPsYw4tqnH2IyzmShWcpJaDzDPMuNVYNa/63UBr1mQw7b9H549ZUn1BP3a/Xhy tKOdmITtqFd7xCbc1p1ca9Eb3U2cXWR7S/EQqxVobfPJdzrTCe9qhPQJb9XzO1lnK7nf x40kW2TTRMdNg984P6qoiXjaiAE32OCTPrcljxB6MmcbHqdLWM25RGJgJ0VMFNAJoQmB mUCg== X-Gm-Message-State: AIkVDXJ2nd1/a23SQdpNcm97L/GHpWoq7k6NaWE3ba51umHyx4S5AIwdfL9jUExOnEpphRqI X-Received: by 10.25.221.217 with SMTP id w86mr7030957lfi.141.1484319732212; Fri, 13 Jan 2017 07:02:12 -0800 (PST) Received: from gnarp.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id s64sm4026664lfs.38.2017.01.13.07.02.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Jan 2017 07:02:11 -0800 (PST) From: Linus Walleij To: Vinod Koul , dmaengine@vger.kernel.org Cc: Linus Walleij Subject: [PATCH 2/2] dma: ste_dma40: indicate granularity on channels Date: Fri, 13 Jan 2017 16:02:09 +0100 Message-Id: <20170113150209.27077-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.9.3 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ste_dma40 has burst level granularity on the residue registers, which is necessary for some clients to know, notably the UART. Before this patch we get this message: uart-pl011 80007000.uart: RX DMA disabled - no residue processing This patch fixes it. Signed-off-by: Linus Walleij --- drivers/dma/ste_dma40.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index 2f0852dfbd1b..a6620b671d1d 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -2838,6 +2838,7 @@ static void d40_ops_init(struct d40_base *base, struct dma_device *dev) dev->device_pause = d40_pause; dev->device_resume = d40_resume; dev->device_terminate_all = d40_terminate_all; + dev->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; dev->dev = base->dev; }