Received: by 10.192.165.148 with SMTP id m20csp1649870imm; Sat, 21 Apr 2018 12:34:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx483iPOA38UaNI8cLaEZUa8VwSvvZ7pwpdoN1akDM60VDvJ8OX46dmnQRb8SzcwdL/hGTdZ2 X-Received: by 2002:a17:902:748b:: with SMTP id h11-v6mr15032851pll.45.1524339244973; Sat, 21 Apr 2018 12:34:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524339244; cv=none; d=google.com; s=arc-20160816; b=DeqY2stqc2h5LaEihjBTxHqvx/5P1f+YKEITE69dkTwlKi6bBd+U/949byXEA4zhgS Do9MYVi+fh3EpHttnqPdMY8ZGsBHZ/thR0Whf5tl2hXjgeYFuaY2GmdUYOMWO/1JrX+p jp/mmXtZle6b9sIB+Rzl6SQJIyWLL+gdsnViTY4UXDqTj973VaRGqv53RZ5tJ4qKk7/G YIGVBvO9bmI5iAC75hiB0w9lIBwyPqSDpcBsX8qaVnDyFKl0SQKBVCL7wE6tyV2H4zmX 7n08FtknZ6569l05YHUutFo3V/BEXZcJmZUK4nIKpIckL/+BBOKst0J5zL8mTbQ6ZNLg SdFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=Y5cGgGF54oyHBTl+VovnzFEfJOxeeQdfb41SUsniGbs=; b=wKGGEyE/xip2fsnVN/gDsMVIz+KTlhKulhiJ92W2eekDKjE2KZ9eeEKFEFX059p3vd peqMdUUnrFWpg5nBWGYLjQf7Rln1PldJiuQVMqtITWeZcBHDpkDkrk1/psj0AKbueUl1 5whybQ7PbdQ8L/sKYSseVzwxqvdJOBeJ3m6VZ3LzufBeqXJ+wHjD2MhPhZkC7sxYBaCX 3mLHCvqtJFKU+ePZyDaGaueVszzLWH5DMh5Wd/tOE49rnb2R2WRSJmyUKEBGwgbGvF94 tmJ7UWYQFKKTP/DjNzft8QcwpGsyGMfFZi4YuVWUvBIB+Hk8wM/z3AZEVPHdrEirrSOH vO3Q== 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 w6si1278894pgb.481.2018.04.21.12.33.50; Sat, 21 Apr 2018 12:34: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 S1753312AbeDUTcP (ORCPT + 99 others); Sat, 21 Apr 2018 15:32:15 -0400 Received: from smtp13.smtpout.orange.fr ([80.12.242.135]:21075 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753158AbeDUTcO (ORCPT ); Sat, 21 Apr 2018 15:32:14 -0400 Received: from belgarion ([90.55.212.125]) by mwinf5d71 with ME id d7YB1x00K2itRW2037YBpz; Sat, 21 Apr 2018 21:32:13 +0200 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sat, 21 Apr 2018 21:32:13 +0200 X-ME-IP: 90.55.212.125 From: Robert Jarzmik To: Bartlomiej Zolnierkiewicz Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org Subject: Re: [PATCH 10/15] ata: pata_pxa: remove the dmaengine compat need References: <20180402142656.26815-1-robert.jarzmik@free.fr> <20180402142656.26815-11-robert.jarzmik@free.fr> X-URL: http://belgarath.falguerolles.org/ Date: Sat, 21 Apr 2018 21:32:11 +0200 In-Reply-To: <20180402142656.26815-11-robert.jarzmik@free.fr> (Robert Jarzmik's message of "Mon, 2 Apr 2018 16:26:51 +0200") Message-ID: <87sh7oxsn8.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Robert Jarzmik writes: > 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 Bartlomiej, could I have your ack please ? Cheers. -- Robert PS: The submitted patch > --- > 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);