Received: by 10.213.65.68 with SMTP id h4csp2433567imn; Mon, 2 Apr 2018 07:31:06 -0700 (PDT) X-Google-Smtp-Source: AIpwx49Vufun+IYJZOgKvIIjXa/9l7LVyQSfo+11Til4nrCzSoh76MD++6tO63cKV0E0zygBAj60 X-Received: by 2002:a17:902:8ecb:: with SMTP id x11-v6mr10057175plo.402.1522679466231; Mon, 02 Apr 2018 07:31:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522679466; cv=none; d=google.com; s=arc-20160816; b=R9v79DIuv4vOl8qbzB0SDphgl6C6otJZCtdIx5+chpTg+qluorlLST84DvQvybV3I6 WeOTq9S/JcTdQ+3Q5INum9+B4eBhhH6F5XaFZII7QyPk9okYYwyhzr3lHmBM5cTBB2Wg olKaodb6mbphw2VauRn/S7vnac2BERsRo/n5sD6XXFndTqbBgOfxOd3hMM7WzHGxz8/F DB1BSp/soNJa7CIXwnG2PizGlj+YLlUjwLmnOPwKsewbdBLmR1wrhQ39SEjq/rVsnAul fuTvUDoBflU4QenkHeDjAdbGtEO2DIEfmKWnk9Vz54gMNJb+blC9xsBDylSVIZ3gfGWT txaQ== 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=rn2t8kzKNW+5mGOIGtSCwX35fK0tI8jzkxsVw+EyE0g=; b=E0/QqvTSVLpZzd2e3Uc7b8yIz3TvdSlLItd/tGiHmjXyfAa033smvbz48mWiUbgI4N YFNOwP2ruwONFfzGW0ajqTMainEEb9FHjpM8yNTighXyoytWNxaApjouszs5JRmppu51 WF4djPvmX4hrSQ9JtYN5Bc56G4MhUxURUh6hKINYWJgAvIPUYYb+ptYmkrN9otrkpjdy YDhmWlFZCIyvf198b/6IW5L176dYm/qMvcczA534mCMDucEdOAr1Lgp79nE6xnMY5mGM NbReYWRFAXZyAfV400kJaGGxSl3W84h96+255dEZVRRSeTBvhfpFiBx3shRkMZ+B7AlU K4zg== 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 v72si298564pgb.333.2018.04.02.07.30.51; Mon, 02 Apr 2018 07:31:06 -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 S1752626AbeDBO2D (ORCPT + 99 others); Mon, 2 Apr 2018 10:28:03 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:51584 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752591AbeDBO15 (ORCPT ); Mon, 2 Apr 2018 10:27:57 -0400 Received: from belgarion.home ([86.201.130.131]) by mwinf5d63 with ME id VSSy1x00R2qEl8e03STnH8; Mon, 02 Apr 2018 16:27:56 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 02 Apr 2018 16:27:56 +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" , "yuval.shaia@oracle.com" , Robert Jarzmik 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 06/15] net: smc911x: remove the dmaengine compat need Date: Mon, 2 Apr 2018 16:26:47 +0200 Message-Id: <20180402142656.26815-7-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 From: Robert Jarzmik 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/net/ethernet/smsc/smc911x.c | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/drivers/net/ethernet/smsc/smc911x.c b/drivers/net/ethernet/smsc/smc911x.c index 05157442a980..4c3713bd5caa 100644 --- a/drivers/net/ethernet/smsc/smc911x.c +++ b/drivers/net/ethernet/smsc/smc911x.c @@ -74,7 +74,6 @@ static const char version[] = #include #include -#include #include @@ -1794,8 +1793,6 @@ static int smc911x_probe(struct net_device *dev) unsigned long irq_flags; #ifdef SMC_USE_DMA struct dma_slave_config config; - dma_cap_mask_t mask; - struct pxad_param param; #endif DBG(SMC_DEBUG_FUNC, dev, "--> %s\n", __func__); @@ -1969,17 +1966,8 @@ static int smc911x_probe(struct net_device *dev) #ifdef SMC_USE_DMA - dma_cap_zero(mask); - dma_cap_set(DMA_SLAVE, mask); - param.prio = PXAD_PRIO_LOWEST; - param.drcmr = -1UL; - - lp->rxdma = - dma_request_slave_channel_compat(mask, pxad_filter_fn, - ¶m, &dev->dev, "rx"); - lp->txdma = - dma_request_slave_channel_compat(mask, pxad_filter_fn, - ¶m, &dev->dev, "tx"); + lp->rxdma = dma_request_slave_channel(&dev->dev, "rx"); + lp->txdma = dma_request_slave_channel(&dev->dev, "tx"); lp->rxdma_active = 0; lp->txdma_active = 0; -- 2.11.0