Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1774182imm; Thu, 24 May 2018 00:16:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqZBdkQK/SqrPpVEPsTZIlvoy/YW2RtseC1iBRqgvJF/4qGmngM18KjuObAUGq2hIA+GVyP X-Received: by 2002:a63:3f45:: with SMTP id m66-v6mr4922361pga.340.1527146178887; Thu, 24 May 2018 00:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527146178; cv=none; d=google.com; s=arc-20160816; b=xpiQkOeuHS9a773Life3OBORNn4VAF3v0/iHx6UJYCDNlrtE8o4bz4Q5E3Fp+7UnuA g00mYsIzTw7yBhQu9Uy6gXiLFUjXT/QSJyLctetXpMcTKyoHg+Z4HNsAqdpSahBcHYHj fYVskeb1H8WIZGodNkS4MphxhWIQCb4y2y59quEQlKcKU41QMZQ9n/JaJ5BBoY5741r4 nUVNLKietwZGWbQ26YiZ9lCmhV/xb8LP0Fvsfea3B4LNELtTgXwzKNnW+9kcOEh7e8nC 8ZpeRkNvsJ2VJOwOOGivvuGWjzSqVPnsPfov9D+YgUnbi//LJFZotlxQ5+lD/JWjl1i8 VoOw== 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=MUtttg80gJTha4Lb2MQTDcEKKEkrAqZv+0GRFaBBRGg=; b=DrjI7QNQIDt6KJZd40Q2kJvCdRndmckL73ErjdrSv+0b8LQb/6uUkK7VGQ8hkScY3y K7T2wulyRtgk2R4a0zmHaBwfOZgl/NcV219/LEwsNSsBfUGpg2BL1u9ktfls9nOzvqBB jQ76w7CzC31kqNingh8O/7yxCFbjnPBmcU0Tsg3/NyT12QL/7Z1OZHvAdRHGmIM09r7x FO1leer8B/R1tZFmKFmhNqvya2azI8AY4LLeK22EKywGIzedUry2WEb/A+YGrSOzyiAS lfzRgoOL9ZZIBUOMa+eUeTooD3svWOzD+qnLbrMYZkv5PzihIeIIcDQ7NDmY/VZ0mLca fRTA== 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 c2-v6si20962866pli.269.2018.05.24.00.16.04; Thu, 24 May 2018 00:16:18 -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 S965014AbeEXHPj (ORCPT + 99 others); Thu, 24 May 2018 03:15:39 -0400 Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:28468 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965017AbeEXHPK (ORCPT ); Thu, 24 May 2018 03:15:10 -0400 Received: from belgarion.home ([90.55.202.35]) by mwinf5d01 with ME id q77G1x00i0mKt3N0377dWJ; Thu, 24 May 2018 09:07:39 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Thu, 24 May 2018 09:07:39 +0200 X-ME-IP: 90.55.202.35 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Ezequiel Garcia , Boris Brezillon , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , 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, alsa-devel@alsa-project.org Subject: [PATCH v2 09/13] ata: pata_pxa: remove the dmaengine compat need Date: Thu, 24 May 2018 09:06:59 +0200 Message-Id: <20180524070703.11901-10-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180524070703.11901-1-robert.jarzmik@free.fr> References: <20180524070703.11901-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 Acked-by: Bartlomiej Zolnierkiewicz --- 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