Received: by 10.213.65.68 with SMTP id h4csp2435624imn; Mon, 2 Apr 2018 07:33:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx48N+sSH/a1sGkSblsJXJD2KpD7uMKpbZMWSUDg/qILVeWz68QhnKqUCuK2cSLr8QBbdhE4V X-Received: by 10.99.131.73 with SMTP id h70mr6376397pge.195.1522679584347; Mon, 02 Apr 2018 07:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522679584; cv=none; d=google.com; s=arc-20160816; b=dDMdVBmfCY+5B8WwjolNPtJIa4ml+irmKBaA+7KKjynCjHZ663tFAbR7jJVtREDrmw dKAZx9fRuZRf8xDLcWMLzBlNX2t8+m+My8wBzOLn9us/pt4IEGUrXsiq9b7m5hfeKWpd wvj6/LkNojjUINYI6E98aQZmCaG82zncgApSY4omhwqVEiG5t9AlY3oLE/wsuQ6GTOUA Z/ZbpqBi1sxH/CpruLlPLonoT7LCBpktcEnj9ZwM/dIrqG40+IiBaLKRPz0RBWx+JELO WZdsdcHWOkQ3tnuoMWn11k0LM9aQsYg1jmgviZ2RHf1L7bt84BC2ExetNvmkAmpETrZW QYBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=saCh87uoAmJqoBHIbF7+lRXWCGb/Zig8J3MZGeR+uzQ=; b=clUNkLEHjIGvxDFEZSNPIKxpbLNo8U1ve1nb+qRVlRTZFSv+N24DqEA9w+IiBQMLGV Epzs+pS+A1sFJLi0pYRo0ASEyo+A0xQrS3kCi4V73WT45DcFblNKw5/36Gq9ClfGtlVs bVQWhAPdMMBiSLX1ZGY3SWjt+1UQU157NzuXp/d5tylnrfmuL/9TJThEhNp/kK8dPwsc vQR4H6YOj+06qt/j9KOl7aVW276LWr28UJCGMnu6bLUBp2SyE65r8Z+er7EzXZE9r1FE QCuD1jTBoQdWkpwSnup38Po3sgAY+siHXxXqknNukAB8eb0VmilF9XY/hj4PvPgRbWHG qsyw== 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 c3-v6si450236pls.123.2018.04.02.07.32.50; Mon, 02 Apr 2018 07:33:04 -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 S1752814AbeDBObL (ORCPT + 99 others); Mon, 2 Apr 2018 10:31:11 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:19069 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752720AbeDBO2P (ORCPT ); Mon, 2 Apr 2018 10:28:15 -0400 Received: from belgarion.home ([86.201.130.131]) by mwinf5d63 with ME id VSSy1x00R2qEl8e03SUCMq; Mon, 02 Apr 2018 16:28:14 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 02 Apr 2018 16:28:14 +0200 X-ME-IP: 86.201.130.131 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Bartlomiej Zolnierkiewicz , Tejun Heo , Vinod Koul , Mauro Carvalho Chehab , Ulf Hansson , Ezequiel Garcia , Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Nicolas Pitre , Samuel Ortiz , Greg Kroah-Hartman , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown , Arnd Bergmann , "David S. Miller" , Pravin Shedge Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, dmaengine@vger.kernel.org, linux-media@vger.kernel.org, linux-mmc@vger.kernel.org, linux-mtd@lists.infradead.org, netdev@vger.kernel.org, devel@driverdev.osuosl.org, alsa-devel@alsa-project.org Subject: [PATCH 09/15] net: irda: pxaficp_ir: remove the dmaengine compat need Date: Mon, 2 Apr 2018 16:26:50 +0200 Message-Id: <20180402142656.26815-10-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180402142656.26815-1-robert.jarzmik@free.fr> References: <20180402142656.26815-1-robert.jarzmik@free.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.11.0