Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4847080imm; Wed, 30 May 2018 13:13:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK6u7+f7efi6sKb9Qz/2kYw9ANNgXVondv5bZ/aTjxE5LvUJiPHHGeltyjbIlmYmvlrPxD7 X-Received: by 2002:a63:9843:: with SMTP id l3-v6mr3339148pgo.208.1527711233202; Wed, 30 May 2018 13:13:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527711233; cv=none; d=google.com; s=arc-20160816; b=UwiIBUj4tTb1HrIwo77vp8q7mg/SB9CQ1XIvfml2ItIopK0/iI72hCd8bL2WMm7R6m xnaeSU6oTd8R3eOX94OnGVlMJUoVss84UWlIAb9WWOe7rxI737tf62tz1/lIgZUzQXdx BTuu9N6eYzR6dYmw+UG0PRB/l+TNJr8Bliq5Pwr2Qwm45lkv2S7T9Wys5KxIIWBnoejT HC1BO+NEZB/pWvUtFmbaX/hrIoKsQkvE9qsJnv3ZGPxuVYoBn/w1J/1FakmQ2P+1j0fE kZldSt+IrnVVC1o1EdFzUfdGOVwTzXixm30H8oZV97oAopZswouUkUqpSvB/Zu7jq0yE Bl+A== 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=K3ukP3lg0WBJI/bcWqpLPz3e6TEEFbk9eN94Fx9SNHz7iDNXEwWAnOixsjonv90QZw MVS4r+KNBSV9gYSnOUgNe5H5SooQCowVu1Vlf51T3gSAuSuegenBQxdq5y9cz4198GRx YX7FOJ4bXtLOk5/ooslEPKkjLTj6zurRE9UTuk/9YAzmcXtOW8SGhi+GotMOef3iyteE JRrI/JsPjcURImP8mkg+QU4hi4hQIWZSi/cPM3jxgh4bUITTN5MT2JbRmcdivE8tNzDv mK8DsSuytXmT4TrKRo7QSD40yagsVQ2Vr/pr9PyqX1ECkA7qlop9xkHoCAq5ephj+zyA BuDg== 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 w4-v6si24750647plp.357.2018.05.30.13.13.39; Wed, 30 May 2018 13:13:53 -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 S932251AbeE3UMz (ORCPT + 99 others); Wed, 30 May 2018 16:12:55 -0400 Received: from smtp11.smtpout.orange.fr ([80.12.242.133]:32829 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932204AbeE3UMx (ORCPT ); Wed, 30 May 2018 16:12:53 -0400 Received: from belgarion.home ([90.55.202.35]) by mwinf5d21 with ME id skCr1x0060mKt3N03kCrhK; Wed, 30 May 2018 22:12:52 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Wed, 30 May 2018 22:12:52 +0200 X-ME-IP: 90.55.202.35 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Vinod Koul , Vinod Koul Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: [RESEND v2] dmaengine: pxa: add a default requestor policy Date: Wed, 30 May 2018 22:12:49 +0200 Message-Id: <20180530201249.26972-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