Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3110630imm; Sun, 17 Jun 2018 11:16:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ1xFKGoyRDlOeu1TnMiQm0XpPzeQWyx+9ouQvU1svXKx38oUheIYGOQ+2eS0gwiL8i/gpT X-Received: by 2002:a17:902:b410:: with SMTP id x16-v6mr10808802plr.324.1529259369148; Sun, 17 Jun 2018 11:16:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529259369; cv=none; d=google.com; s=arc-20160816; b=LXpVXxcpCwxkjADTrzUrdYKwVyjD3mAGbAl/Oe6ZJHkmwP7w/LgGKjMxTZYClGscEj xLGYAnHPcPZpqpwELIBrnLNkJ5V8GUqNHeG5287LD/zMlcp5CggR2dCiPjCTW0Fl9mpN nKfidlM4ZqPgMl/8zGTuuHCDF7kaoyawrJwudZCJCZKlRe52a3HUig7w3KkBbfVAcrWc LPm9ipzKzHaOYv8R9Wtv1z8NYhqrbzG23I9jUmiECSYWAsG4ZD3uMOXsfTWPqkxhIiJn vU9qt5yl9wxoWqz0OjaX94BGtLqVV9JwXBd8IXloLMviWJJvymYn5jg3OTMug9Alf+5O /azQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=6vkgYo6zetzxYezuXxe16h9qyRffOiVdPJaFbaVsoS0=; b=RMkIN+BZykEp9xjIPvkZ2TTkKiigpgKi9MtawwxZXISkI5tSeLIc3+fk74hEWxq80O FXOii/eyF0C6ldM+BMASn4bXrqM2ZIShTSDtQNRSqkqxqYea8SAuCSvTjB/KqvfdfbeJ Y4VgSOnZsFFU11KvaOK+72Qa2jcHa4ymSbNVyK7ypcTOCd2SR0I8iiPhM3mQbwurMloP 8cPLVEMojQiVsr/vFl/p+EeGYvGm8yQVwfBREBWMJtJ0Z/tihV6bufxmI4QpRm0SGUAN QnUiSPftpPF0t7QIWRMsFSsozGGnnMcSKA+2ZsCzZ4ptjYxZo8+hnJSSV0F3CRrljO0j DKRg== 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 h16-v6si12124270pfi.84.2018.06.17.11.15.25; Sun, 17 Jun 2018 11:16:09 -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 S933964AbeFQSMz (ORCPT + 99 others); Sun, 17 Jun 2018 14:12:55 -0400 Received: from mail.bugwerft.de ([46.23.86.59]:34452 "EHLO mail.bugwerft.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933374AbeFQSMw (ORCPT ); Sun, 17 Jun 2018 14:12:52 -0400 Received: from [192.168.178.170] (p57BC9B2C.dip0.t-ipconnect.de [87.188.155.44]) by mail.bugwerft.de (Postfix) with ESMTPSA id 5C4C928984A; Sun, 17 Jun 2018 18:09:48 +0000 (UTC) Subject: Re: [PATCH v3 06/14] mtd: rawnand: marvell: remove the dmaengine compat need To: Robert Jarzmik , Haojian Zhuang , 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 References: <20180617170217.24177-1-robert.jarzmik@free.fr> <20180617170217.24177-7-robert.jarzmik@free.fr> From: Daniel Mack Message-ID: <3a2a8951-f380-af99-bf97-6ff722404410@zonque.org> Date: Sun, 17 Jun 2018 20:12:49 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180617170217.24177-7-robert.jarzmik@free.fr> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday, June 17, 2018 07:02 PM, Robert Jarzmik wrote: > 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: Signed-off-by: Daniel Mack Something went wrong here, but you can simply fix that when applying the series :) Daniel > Signed-off-by: Robert Jarzmik > Acked-by: Miquel Raynal > --- > drivers/mtd/nand/raw/marvell_nand.c | 17 +---------------- > 1 file changed, 1 insertion(+), 16 deletions(-) > > diff --git a/drivers/mtd/nand/raw/marvell_nand.c b/drivers/mtd/nand/raw/marvell_nand.c > index 10e953218948..64618254d6de 100644 > --- a/drivers/mtd/nand/raw/marvell_nand.c > +++ b/drivers/mtd/nand/raw/marvell_nand.c > @@ -2613,8 +2613,6 @@ static int marvell_nfc_init_dma(struct marvell_nfc *nfc) > dev); > struct dma_slave_config config = {}; > struct resource *r; > - dma_cap_mask_t mask; > - struct pxad_param param; > int ret; > > if (!IS_ENABLED(CONFIG_PXA_DMA)) { > @@ -2627,20 +2625,7 @@ static int marvell_nfc_init_dma(struct marvell_nfc *nfc) > if (ret) > return ret; > > - r = platform_get_resource(pdev, IORESOURCE_DMA, 0); > - if (!r) { > - dev_err(nfc->dev, "No resource defined for data DMA\n"); > - return -ENXIO; > - } > - > - param.drcmr = r->start; > - param.prio = PXAD_PRIO_LOWEST; > - dma_cap_zero(mask); > - dma_cap_set(DMA_SLAVE, mask); > - nfc->dma_chan = > - dma_request_slave_channel_compat(mask, pxad_filter_fn, > - ¶m, nfc->dev, > - "data"); > + nfc->dma_chan = dma_request_slave_channel(nfc->dev, "data"); > if (!nfc->dma_chan) { > dev_err(nfc->dev, > "Unable to request data DMA channel\n"); >