Received: by 10.213.65.68 with SMTP id h4csp2434761imn; Mon, 2 Apr 2018 07:32:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+O2ZkMQYEBk4Sqc6aDIYvCnQZQ1MFKHInAMEuUjT/e5lXzgKOC7WZoQTl1nDLl7yfbEYcq X-Received: by 10.101.67.198 with SMTP id n6mr6508194pgp.150.1522679535518; Mon, 02 Apr 2018 07:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522679535; cv=none; d=google.com; s=arc-20160816; b=swf54WmvC34e0Tu8+9xSBnFdX4CYPfp4E9LBvE6ybn4PrWMOUKzhHzjU9yYtERg5SR WOVbdsKRRUBGuQ5nis2ivBFFaX4UyaYv1n5Fo5oW265fcZMnaYhg93luTVvrNtP8vB2T ETJL2qHnMZcu7Os9EPTBTmHl6DRXV5YRMiH6EBBWPNd6mUonZuaw2/D4iof3C7NPStLx WRo/h845nwcxKpa2pv9s1p9tAPCcVPrr5zIv0mHoJeNuckkbnYraUigX5xALD6pUiTGR oGQI9qO4hiD9Y4N+rB696kHgESQRq6dG6Nirc7dPViKyQgkNRmW6j1T+GQTFKfburtMd ZC1Q== 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=QNBe81X9irmTc/L9iZQW7p8+073qjbv8t8rjrN3AAeg=; b=kf8oLUHIqsYWjATUECFreyJq9JtO84pL93/5PCRxZaROfEqjNHEt8IhNPnWAZHvmeZ lgwwrTM2xzR8d8EBnhW2n0QjAAhHawSsLc8jRUxUZT+1RqE6c2G19ugMTBu2N9d3wBYZ fPYbQ4AJHxXqeTs1es68wTcB84fO7nOIwp9rfbRDux9PDwPpK9F0ZuOiUJIHADDUzF9s vVJpw9L0xOWyOF2ZC1J9WlLOXADyGtIE9vvR2qG/2GjlIWYypi5+1j9D9L1GPpBcmJZh DLdm9C/13fJacSbsV6Pdgeohnqp3Pt0ieoJUCqkwwCtvUHYJDCih/DsJwXVtzjswSxZQ Z/Tw== 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 q15si288808pgc.756.2018.04.02.07.32.01; Mon, 02 Apr 2018 07:32:15 -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 S1752797AbeDBO2Z (ORCPT + 99 others); Mon, 2 Apr 2018 10:28:25 -0400 Received: from smtp06.smtpout.orange.fr ([80.12.242.128]:38295 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752746AbeDBO2R (ORCPT ); Mon, 2 Apr 2018 10:28:17 -0400 Received: from belgarion.home ([86.201.130.131]) by mwinf5d63 with ME id VSSy1x00R2qEl8e03SUENl; Mon, 02 Apr 2018 16:28:16 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 02 Apr 2018 16:28:16 +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 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 10/15] ata: pata_pxa: remove the dmaengine compat need Date: Mon, 2 Apr 2018 16:26:51 +0200 Message-Id: <20180402142656.26815-11-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/ata/pata_pxa.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/ata/pata_pxa.c b/drivers/ata/pata_pxa.c index f6c46e9a4dc0..e8b6a2e464c9 100644 --- a/drivers/ata/pata_pxa.c +++ b/drivers/ata/pata_pxa.c @@ -25,7 +25,6 @@ #include #include #include -#include #include #include #include @@ -180,8 +179,6 @@ static int pxa_ata_probe(struct platform_device *pdev) struct resource *irq_res; struct pata_pxa_pdata *pdata = dev_get_platdata(&pdev->dev); struct dma_slave_config config; - dma_cap_mask_t mask; - struct pxad_param param; int ret = 0; /* @@ -278,10 +275,6 @@ static int pxa_ata_probe(struct platform_device *pdev) ap->private_data = data; - dma_cap_zero(mask); - dma_cap_set(DMA_SLAVE, mask); - param.prio = PXAD_PRIO_LOWEST; - param.drcmr = pdata->dma_dreq; memset(&config, 0, sizeof(config)); config.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; config.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES; @@ -294,8 +287,7 @@ static int pxa_ata_probe(struct platform_device *pdev) * Request the DMA channel */ data->dma_chan = - dma_request_slave_channel_compat(mask, pxad_filter_fn, - ¶m, &pdev->dev, "data"); + dma_request_slave_channel(&pdev->dev, "data"); if (!data->dma_chan) return -EBUSY; ret = dmaengine_slave_config(data->dma_chan, &config); -- 2.11.0