Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3063641imm; Sun, 17 Jun 2018 10:11:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKx5eWxZigGVhdvoY/f5S4JGDDTe//iymAJOCCJsNgzOs5HPS/nL6wFYSZfqeRkliaKbmgr X-Received: by 2002:a63:583:: with SMTP id 125-v6mr8266486pgf.385.1529255494695; Sun, 17 Jun 2018 10:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529255494; cv=none; d=google.com; s=arc-20160816; b=ZiHbN+/PzbsbUVVczWYA1VtWhX0HGgh87naq0tbT2+FS1jt8OzdWAKAXlrTENQ0PHa a5GLdSCx002A6Os9k9GTzaSxksH92hl8pWIWTAuKxbNIKLs4dRJE9XBzdH1qJDaee0pz aKbthcu8fHCgdIiM1p0jZOnuZ7ZUfJqUp2cNQTzjW0a6ol2uvEKGkoMWGKDl8p/vLeXG 1ala8A9S6rA8fI3dCHYym38wL1t3qUhczMUkjnYcz2BwKA/Nhj8dj0NGo6AyICwhQGak U/CmXYf93a5rgSClZ8a/b4jzSZg3oPnaOXqcOawajwNo8w4dKuaQJi6grRhWh3PZmnPU gnzA== 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=XNhJUpnmICQW++8cADGVDNzk/6DJPnxOrsMWSY+Bsvc=; b=enZjCYurkC0hgBF85+DhOcAE5kCUVP8vqAuiaykIWViS4ktbQUeE4VryFTUzEHNRK7 pHHTLoA2E8UB6YopJwIK98EZn0WgkF6TxEIQPO+KofH/LkZgvwQdhvmr7ijbVnj7I8zZ h8jelDESOdLS7Y/Fkr9/29yU4jDNMdaXfhXX0Po1ggQ0Azvq5hTYYFb6WNtbZ2G/0y7U plSkGNuRrYUUC5rWvUWS4qdRPs6UmiB6sL2hghn+ne0KZv2RZtL3wpmURXuPhDBdEeyy I2RsN0YNkkKco1pKiw81fuLfhbJ2YJF+RVeRf4miBtCYCRph/QBp4TJi8MrRr+FSsa6J am2A== 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 2-v6si12632375pfj.6.2018.06.17.10.11.19; Sun, 17 Jun 2018 10:11:34 -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 S934869AbeFQRKr (ORCPT + 99 others); Sun, 17 Jun 2018 13:10:47 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:58061 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934367AbeFQRKm (ORCPT ); Sun, 17 Jun 2018 13:10:42 -0400 Received: from belgarion.home ([90.55.203.186]) by mwinf5d83 with ME id zt2e1x00N41oiFu03t39SE; Sun, 17 Jun 2018 19:03:11 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sun, 17 Jun 2018 19:03:11 +0200 X-ME-IP: 90.55.203.186 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Bartlomiej Zolnierkiewicz , Tejun Heo , Vinod Koul , Mauro Carvalho Chehab , Ulf Hansson , Miquel Raynal , Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , Nicolas Pitre , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown 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, alsa-devel@alsa-project.org Subject: [PATCH v3 08/14] net: smc91x: remove the dmaengine compat need Date: Sun, 17 Jun 2018 19:02:11 +0200 Message-Id: <20180617170217.24177-9-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180617170217.24177-1-robert.jarzmik@free.fr> References: <20180617170217.24177-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 --- Since v2: converted to NULL filter function and NULL dma parameter call --- drivers/net/ethernet/smsc/smc91x.c | 9 +-------- drivers/net/ethernet/smsc/smc91x.h | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index 080428762858..b944828f9ea3 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -2019,17 +2019,10 @@ static int smc_probe(struct net_device *dev, void __iomem *ioaddr, # endif if (lp->cfg.flags & SMC91X_USE_DMA) { dma_cap_mask_t mask; - struct pxad_param param; dma_cap_zero(mask); dma_cap_set(DMA_SLAVE, mask); - param.prio = PXAD_PRIO_LOWEST; - param.drcmr = -1UL; - - lp->dma_chan = - dma_request_slave_channel_compat(mask, pxad_filter_fn, - ¶m, &dev->dev, - "data"); + lp->dma_chan = dma_request_channel(mask, NULL, NULL); } #endif diff --git a/drivers/net/ethernet/smsc/smc91x.h b/drivers/net/ethernet/smsc/smc91x.h index b337ee97e0c0..a27352229fc2 100644 --- a/drivers/net/ethernet/smsc/smc91x.h +++ b/drivers/net/ethernet/smsc/smc91x.h @@ -301,7 +301,6 @@ struct smc_local { * as RX which can overrun memory and lose packets. */ #include -#include #ifdef SMC_insl #undef SMC_insl -- 2.11.0