Received: by 10.192.165.148 with SMTP id m20csp1649077imm; Sat, 21 Apr 2018 12:32:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx48qHkEqACR+IwLjtmmoYeEjQzd1VqhbSUdySIJkiJGDBbuNEuOv4j08e1fkoz1LWO1FyaiZ X-Received: by 10.98.19.151 with SMTP id 23mr3671698pft.222.1524339169867; Sat, 21 Apr 2018 12:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524339169; cv=none; d=google.com; s=arc-20160816; b=nOvcSsIETH7aSTb2wJWm2D2XRW9/tA0sMB31OsMDmDYNkzGHgWFZs2aLaF8/qri3FJ i5hjJ50L9z6i+H7jEZEJRBM1EmI04yK28252PgdqsfsmEvNmDVkJcIHH1jtkcyseF0WX 8/Ibfh2qgf6WiaAAUOwabVSgX3rCzoKBPW1xLCoROhXfbe9bYsDlTZu4to47baltk095 Qrqo0YNyGWEwEOOzv3yWWolPX5mt0iAnzhKEZat+UPRY4e9W9gT9m2kHF2pih3C4lMbl RD3sjocyXuUJCrwYApV0i3eJ/AYpB0rooQLfCHHdfhVXfqChqd+iiw6RSsqd9AoIO4Jz jd/w== 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=iAnIV2u75G2fqFl64WUzRPbgEliNFHX4pDb7uwKcfzM=; b=Yf6V4UgFkB+UG+MP1Eo/bWq55RwLqbBi2eQOdNpL66cJon2opI/cah0jkz8sE/CTx/ 7ZHROeWQHI4k8u+QD3NHsytGcb0PtpOl9tGk0LEDsSdY8epex3/cWmvp4Cn3R3upkRgj qxS/Z1nHunZJgfSkTh/6jpZcyAthQSzSPUw9jyXly1cBLIouX3IbggODkOxPHyTWAbWH QGIbONmCOYHqG7+XXjp9aYYIkW1CZQ3H5RVT3N7lrtQSuO3JViSyAFjlZ1EuQ342creM iVa6NI2FsfX3rMvEcccIbFF4boLH3tEAI6kqcRw43SLNAwU+2JlfIzV0QiOLseiQ7qhr /nGQ== 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 f7si6919810pgq.207.2018.04.21.12.32.35; Sat, 21 Apr 2018 12:32:49 -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 S1753365AbeDUTaW (ORCPT + 99 others); Sat, 21 Apr 2018 15:30:22 -0400 Received: from smtp13.smtpout.orange.fr ([80.12.242.135]:38103 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753158AbeDUTaV (ORCPT ); Sat, 21 Apr 2018 15:30:21 -0400 Received: from belgarion ([90.55.212.125]) by mwinf5d71 with ME id d7WK1x00M2itRW2037WKj8; Sat, 21 Apr 2018 21:30:20 +0200 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sat, 21 Apr 2018 21:30:20 +0200 X-ME-IP: 90.55.212.125 From: Robert Jarzmik To: Samuel Ortiz Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/15] net: irda: pxaficp_ir: remove the dmaengine compat need References: <20180402142656.26815-1-robert.jarzmik@free.fr> <20180402142656.26815-10-robert.jarzmik@free.fr> X-URL: http://belgarath.falguerolles.org/ Date: Sat, 21 Apr 2018 21:30:19 +0200 In-Reply-To: <20180402142656.26815-10-robert.jarzmik@free.fr> (Robert Jarzmik's message of "Mon, 2 Apr 2018 16:26:50 +0200") Message-ID: <87wox0xsqc.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 the pxa architecture switched towards the dmaengine slave map, the > old compatibility mechanism to acquire the dma requestor line number and > priority are not needed anymore. > > This patch simplifies the dma resource acquisition, using the more > generic function dma_request_slave_channel(). > > Signed-off-by: Robert Jarzmik Samuel, could I have your ack please ? Cheers. -- Robert PS: The submitted patch > --- > drivers/staging/irda/drivers/pxaficp_ir.c | 14 ++------------ > 1 file changed, 2 insertions(+), 12 deletions(-) > > diff --git a/drivers/staging/irda/drivers/pxaficp_ir.c b/drivers/staging/irda/drivers/pxaficp_ir.c > index 2ea00a6531f9..9dd6e21dc11e 100644 > --- a/drivers/staging/irda/drivers/pxaficp_ir.c > +++ b/drivers/staging/irda/drivers/pxaficp_ir.c > @@ -20,7 +20,6 @@ > #include > #include > #include > -#include > #include > #include > #include > @@ -735,9 +734,7 @@ static void pxa_irda_shutdown(struct pxa_irda *si) > static int pxa_irda_start(struct net_device *dev) > { > struct pxa_irda *si = netdev_priv(dev); > - dma_cap_mask_t mask; > struct dma_slave_config config; > - struct pxad_param param; > int err; > > si->speed = 9600; > @@ -757,9 +754,6 @@ static int pxa_irda_start(struct net_device *dev) > disable_irq(si->icp_irq); > > err = -EBUSY; > - dma_cap_zero(mask); > - dma_cap_set(DMA_SLAVE, mask); > - param.prio = PXAD_PRIO_LOWEST; > > memset(&config, 0, sizeof(config)); > config.src_addr_width = DMA_SLAVE_BUSWIDTH_1_BYTE; > @@ -769,15 +763,11 @@ static int pxa_irda_start(struct net_device *dev) > config.src_maxburst = 32; > config.dst_maxburst = 32; > > - param.drcmr = si->drcmr_rx; > - si->rxdma = dma_request_slave_channel_compat(mask, pxad_filter_fn, > - ¶m, &dev->dev, "rx"); > + si->rxdma = dma_request_slave_channel(&dev->dev, "rx"); > if (!si->rxdma) > goto err_rx_dma; > > - param.drcmr = si->drcmr_tx; > - si->txdma = dma_request_slave_channel_compat(mask, pxad_filter_fn, > - ¶m, &dev->dev, "tx"); > + si->txdma = dma_request_slave_channel(&dev->dev, "tx"); > if (!si->txdma) > goto err_tx_dma;