Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1984476imm; Sat, 9 Jun 2018 05:44:51 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJILrRzHVN9PdinMsxgVNZS2TUrupNNqorvcHagWGLJa6TfFtOeK1BAQvTNCztPNE9KOv3G X-Received: by 2002:a62:b509:: with SMTP id y9-v6mr10070006pfe.121.1528548291657; Sat, 09 Jun 2018 05:44:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528548291; cv=none; d=google.com; s=arc-20160816; b=SWyue3ch1lJ+SA4Qz2VjVFS6FGQJlp5/PQK44mNgWJn+FMRKb30fBFWeJP7+pkjWcV s/mwCV/u7aCGWR5rV/JJOOVYMEeJB663FFe1/g6Dc+kruRLpkMbj6qduF5jZFYcA3+9W DVbqjwk+dHIi3HFzGlgix6JJ4T5PaHcOPX6wBkfTh1mRu0gwVgDf0bi9/imUZFLMcsUO zl2rxa2bl6AUlwz14lNlE2UQqiwldqqVyyFSJi566xRUwA0ZckfzKRcccEFy8xrTTRQx QLp/X+GeQ5FGkZrHBvmgHSQwDKRX84i+KkOYMxgpRcumB5ZZQ6+EeA6R1epA1Oo+5xGo wIrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=Be61kHKoho/h6MigTUm7AFpadKCYRysHjisZEyczbV4=; b=xXzKsGtT1iBb/rpArdYThsqVOUuXMtWO0Ge8pEBoZS/qZvmAiBFL/Q7NK1dHmKWG5L SVzUuz3bIDWh2CHRAarN2CP61VHc0MQvUhxDdhwu82os8YU1oe6Lr/+s8F9qUgGDQ6Xd d9apCoL/bcpzMZoevLaW2QyWI0aQRxzdODuL46qkq5Z5zzJ8UkuxUdsNL6wOIqFsO+VO lNhyr6wKmhyw6NUXzCSFN/aTbq+G5VVCOJNUoJnCHqv0fKgrnWQq62Mt1GYRB1wpWctx EKTrRP/A1hDj0ft186C9RjdGB136qHowNQs/P1IFyLoOOo4fFs3gQ49nWKAeBC4VXT6s RWpQ== 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 a73-v6si32171878pfl.349.2018.06.09.05.44.36; Sat, 09 Jun 2018 05:44:51 -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 S1753223AbeFIMoM (ORCPT + 99 others); Sat, 9 Jun 2018 08:44:12 -0400 Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:48060 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753194AbeFIMoK (ORCPT ); Sat, 9 Jun 2018 08:44:10 -0400 Received: from belgarion ([90.55.202.35]) by mwinf5d84 with ME id wcjx1x0080mKt3N03cjyZX; Sat, 09 Jun 2018 14:44:09 +0200 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sat, 09 Jun 2018 14:44:09 +0200 X-ME-IP: 90.55.202.35 From: Robert Jarzmik To: Vinod Koul , Daniel Mack Cc: Haojian Zhuang , Vinod Koul , linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann Subject: Re: [RESEND v2] dmaengine: pxa: add a default requestor policy References: <20180530201249.26972-1-robert.jarzmik@free.fr> X-URL: http://belgarath.falguerolles.org/ Date: Sat, 09 Jun 2018 14:43:57 +0200 In-Reply-To: <20180530201249.26972-1-robert.jarzmik@free.fr> (Robert Jarzmik's message of "Wed, 30 May 2018 22:12:49 +0200") Message-ID: <878t7oruya.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Robert Jarzmik writes: > 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 Hi Vinod, Could I have your ack on this so that I add this one to the dma slave map serie after the merge window is closed please ? Cheers. -- Robert > --- > 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); -- Robert