Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4837642imm; Wed, 30 May 2018 13:02:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIGL9gike3LKeFUyqivOdvBXytbSwOJBMzK/w4j655H52Em/oVBI4yI3sgC17qJwiLmMl6m X-Received: by 2002:a62:9804:: with SMTP id q4-v6mr4060397pfd.65.1527710565013; Wed, 30 May 2018 13:02:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527710564; cv=none; d=google.com; s=arc-20160816; b=T7H9xXwlniGDhsQW1j+VSrpGfEWdWLOv9GILtrtKVOu5NckF/zh4zXshbPPl6z+ENa CdpgsT1ELYLYePG9/btKLFn/UMTEWef6j0hhYhmXo7rLLi+FMXM9j6Q8xIRcf0ctdPbw EihAz1I1jWe9EpDJw2cA3f1xXS/VvqjYwEursEzoycP5VvmWm3AZm4e9cGCZtwlEceZp NDKKifsUXUYSF0IuyCZYVkt7kGZQDWzrz6joT89xgAaTRwGTMVFfkS/2vJO+Bi00ogjy 7oWZFfkqH7cPKzChAQyQN338mwN85udUDflQqA82RwXh80TO9YN1Dr0iBDg0hA5dGRE5 /wtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Cwgko0ZLyR7pPGGffpn55nruKynSYWtkWOD0OpLl2S8=; b=swcJo5l/DP9iFMfFHfEHIRXEsK+s8M/tpE1UAIIzksXyJ0RQv0+uIeF6xgiAEjvaKQ YvZXK99QI/JlRaI/b/Q0m9P5pvRg9OZ6kOODFtfE21BzW16WA+1Pk1RxBmsbSYFjmh7j vDCpUJdp1ay+zGMOrLSzOuglOovE9IxE6kZ8xEmBbQ7Vie5aWX+h4eug7ETl9Mvlb7Ms qyQ5xSIGkVb1/XBSRbkVjHml/nisuOzeaZJOVN38Bct7fJHGF85wZna3HkaqI8Ka9umM 8XC3iM9M5S2lRzn3kBB5HAcrskqFK3vLUoi04jaA9P4D/QQgsN3sSNg9G+hFUaatkbFn +0Ag== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4-v6si27156355pgc.411.2018.05.30.13.02.30; Wed, 30 May 2018 13:02:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932241AbeE3UAl (ORCPT + 99 others); Wed, 30 May 2018 16:00:41 -0400 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:43738 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753718AbeE3UAk (ORCPT ); Wed, 30 May 2018 16:00:40 -0400 Received: from belgarion.home ([90.55.202.35]) by mwinf5d21 with ME id sk0T1x0080mKt3N03k0Ygj; Wed, 30 May 2018 22:00:37 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Wed, 30 May 2018 22:00:37 +0200 X-ME-IP: 90.55.202.35 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Vinod Koul Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [PATCH v2] dmaengine: pxa: add a default requestor policy Date: Wed, 30 May 2018 22:00:18 +0200 Message-Id: <20180530200018.26677-1-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As what former drcmr -1 value meant, add a this as a default to each channel, ie. that by default no requestor line is used. This is specifically used for network drivers smc91x and smc911x, and needed for their port to slave maps. Cc: Arnd Bergmann Signed-off-by: Robert Jarzmik --- Since v1: changed -1 to U32_MAX --- drivers/dma/pxa_dma.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/dma/pxa_dma.c b/drivers/dma/pxa_dma.c index 9505334f9c6e..b31c28b67ad3 100644 --- a/drivers/dma/pxa_dma.c +++ b/drivers/dma/pxa_dma.c @@ -762,6 +762,8 @@ static void pxad_free_chan_resources(struct dma_chan *dchan) dma_pool_destroy(chan->desc_pool); chan->desc_pool = NULL; + chan->drcmr = U32_MAX; + chan->prio = PXAD_PRIO_LOWEST; } static void pxad_free_desc(struct virt_dma_desc *vd) @@ -1386,6 +1388,9 @@ static int pxad_init_dmadev(struct platform_device *op, c = devm_kzalloc(&op->dev, sizeof(*c), GFP_KERNEL); if (!c) return -ENOMEM; + + c->drcmr = U32_MAX; + c->prio = PXAD_PRIO_LOWEST; c->vc.desc_free = pxad_free_desc; vchan_init(&c->vc, &pdev->slave); init_waitqueue_head(&c->wq_state); -- 2.11.0