Received: by 10.192.165.148 with SMTP id m20csp2272329imm; Sun, 22 Apr 2018 04:08:31 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/CtwaOvvHjmdWoWlP9mIxOv7mWXMT62fCqGqh+Qa7wBeiL/ofoW8YRVNQvBjcUzKaueEmE X-Received: by 10.98.246.25 with SMTP id x25mr16130342pfh.138.1524395310993; Sun, 22 Apr 2018 04:08:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524395310; cv=none; d=google.com; s=arc-20160816; b=j9Q10/NfXzgLXW0HsmCJVREBp3YXkSwsFZGPbvpGqjRMrRRBHsrm/asCevjFyRXHIC eqynbmKdk6t3xGTNaYocSU66rNPVYvEMco3oqH38PxK+9h4cjSR6NQciEz4/Mkmufed+ bZC9G4pfzWSpsvWJhEKddWaV7uhKrJ6eK+VZ9eEWpV7DfzZuxBNZOzLWvlpExDiyPxzY 9tE3WCwomsY4DQfCI28XwcAdJyB/60ebXjjOLYmTUGep+xDqlfGFiWDGlgkgqW7HYCpg AOTtvtfqFR37Sxn69LXpmRn3zj03ZEbQU7epxAsdR76rG45AuG5Raupd5NEWoxYd2lbu IPcg== 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=pibUF59dyi4aHhvK4aNEby4Vh08XD8VitMxQ98eNcIk=; b=VOh7NfsfP6ewQTpVXOlPPwMq6cMAO3XArzPcsQRD4yZEO3se4Sd2J5s6L5S0h/BW9F ihWoUxhPAlr+O++CeQpj9rDlninmniNT1GXO/D7U7QmsEc1xRe2Q8bpKF0W/9Hl7YwMu wUcWIg6a3ZZ45XAh4CWs8L0oRkgSvdjYKzWP2i/wccNZ0G7brMEqE8/DWX5kaxvZFzMy XIcwvEHvku2f9uKJGrUrDpbDPYbAO19c7yLjCfzvkr2IsPdZFO8opB7jLyZrbfEybYwa +1ItqCZ/KsZ9rCIimdRotC7NzfWRb0w2F59LdSFDohGzkQpRafsxdKoO+qbF+yb8Y0lD bE4Q== 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 37-v6si9492658plq.288.2018.04.22.04.08.16; Sun, 22 Apr 2018 04:08:30 -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 S1753340AbeDVLHD (ORCPT + 99 others); Sun, 22 Apr 2018 07:07:03 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:39277 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752495AbeDVLG7 (ORCPT ); Sun, 22 Apr 2018 07:06:59 -0400 Received: from [192.168.2.10] ([212.251.195.8]) by smtp-cloud8.xs4all.net with ESMTPA id ACoufo5lXdX8IACp0f48ZP; Sun, 22 Apr 2018 13:06:58 +0200 Subject: Re: [PATCH 04/15] media: pxa_camera: remove the dmaengine compat need To: Robert Jarzmik , Daniel Mack , Haojian Zhuang , 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 , Petr Cvek , Sakari Ailus , Laurent Pinchart , Pravin Shedge , Flavio Ceolin , Robert Jarzmik 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, =?UTF-8?Q?Niklas_S=c3=b6derlund?= References: <20180402142656.26815-1-robert.jarzmik@free.fr> <20180402142656.26815-5-robert.jarzmik@free.fr> From: Hans Verkuil Message-ID: <89f3e97c-08a4-33b6-8fd3-0c1b4dea2065@xs4all.nl> Date: Sun, 22 Apr 2018 13:06:12 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180402142656.26815-5-robert.jarzmik@free.fr> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfHqtpT6yjiwFYtqei8SA0FSbh6QO8VOXO7YA5snpYPodLxPssGwQ9apgwSWzllasxtdCRw+LXSpVVEKhU5oUItqh9KiRppl0QwN6rjqWFERDcocOFsyq fFbSOqnG4KKLLOTRv5o39VdpDHZXDJpLzGkeTZDJv6kJV1GMkSuK4vml55SJ5oa6On7JPDQ1RSR52qZctFdjDCvEaS086gpsSrcqG28+WgwaxsK1xoVtti9C BLvf73pz1e+jTtO+oPMBsgzLqUy25oSB2YUxm0NQr2rKFlrLXpquJornII+IjGeexlqXlz/8PhKOT7oanMWJjd/+Rcf4ShWZgqrFiYc4fBZXglUTal5GgBAK zIjPSF3+zPk+m8x6gn0NnrBK7xDxYd1iQr3b+6xzHVb/Fk4N1mqAlWueORv/RyFoqJmUa9rkkLt3Z5hwnMVGAYquhqZYDh9EX/Yemem6CuRcApEK7x+27O9M mcOIypxqm33+rPjSkSOK1O7QrJYDWS/mZ14YqEsdnAyb76+Mf73a3bfnHcgIEMUCTxutddkYs6r999HvXiqnsrbr+0smp3FG6JLvA8V1Pw37VSEvoZVzvfzC 17DUSkPUqBcvciBwvF5eyejuBf3eG1KtmOAx21qqSl068rQucoVHVw9uP6Qbsmyg4UI886k8hqc+mKHIekwNaEb4aQsxJ2XcpJiwK9ISrVv1DiArVNS9folV jxVzuaAGMgvlAlq8ronrfHn7I0L1TRphq1B/MSMo1uA0v9QSdoFWRQx6Cxe8venIPm9L+wghWQQY3siETmPylpPcY/Y/ip1o6c0Smhwo3BWVyq7ldCyXwE3z C+CAoqXPkiXoQ8NfN0mHVNA8bGD1V6s4KckaIePvIbBfpGL6C1R0uVoZue8bvCDAFD4aNSJ9h67n2Ix9Wo425OXQj41Fl+LRKHwsuu/hsAxHp43IY/iJm6vw s3SDwox+tGUzqXt66dWRzYlLtYXES8udbd/wFY1rp41GnuSOaUMjUvCB4TGRsXJxyYq8cWu6r0AYSKSAURle1E7IY43wQkkFdkhjV6lu59er/i3yOgjAdou9 DYdJ7h3oAtV2Nv92fyPqVPAB5L3OHQysL4koMmInmnkjZIkh45Lb+xPj1e2jJZIV60SvYrMP31WshWrq6sxcbDObqhuJkrLoWs6vUgWPoH57HJB2pZGIbEWA sFbCf0ZR0JigcrGppXsir0EYyqPKK4TLhelub7ayAJUgf61wD+WZ6M9dCVyaFErlj50bsE/Ei2J+HQefe+FKYaG78lnlcjVMHIQxjHXfW1/F74KYUrpOvZVo KpbvrL8I7lDb2s4k1pcQmn4YuA3CzX/iQnoAjbTbsXedo+QPdWJF9/uWL9/J2Iyyg+KKh9tDbMiZznn/FLulR5LqKwLGwVbxMnXUnxIdNc7+ZHOahwcMgH09 CBtzuZRGAWWjSmZFJ53wJ8KmQnx897BYMiMWVFmmmHNYYtO8OI9iYxyk1McIynR1Wm7aTvLUPcmEDXK/6XNb5oRYO0Td2di+0kSPrQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/02/2018 04:26 PM, Robert Jarzmik wrote: > From: Robert Jarzmik > > 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: Hans Verkuil Regards, Hans > --- > drivers/media/platform/pxa_camera.c | 22 +++------------------- > 1 file changed, 3 insertions(+), 19 deletions(-) > > diff --git a/drivers/media/platform/pxa_camera.c b/drivers/media/platform/pxa_camera.c > index c71a00736541..4c82d1880753 100644 > --- a/drivers/media/platform/pxa_camera.c > +++ b/drivers/media/platform/pxa_camera.c > @@ -2357,8 +2357,6 @@ static int pxa_camera_probe(struct platform_device *pdev) > .src_maxburst = 8, > .direction = DMA_DEV_TO_MEM, > }; > - dma_cap_mask_t mask; > - struct pxad_param params; > char clk_name[V4L2_CLK_NAME_SIZE]; > int irq; > int err = 0, i; > @@ -2432,34 +2430,20 @@ static int pxa_camera_probe(struct platform_device *pdev) > pcdev->base = base; > > /* request dma */ > - dma_cap_zero(mask); > - dma_cap_set(DMA_SLAVE, mask); > - dma_cap_set(DMA_PRIVATE, mask); > - > - params.prio = 0; > - params.drcmr = 68; > - pcdev->dma_chans[0] = > - dma_request_slave_channel_compat(mask, pxad_filter_fn, > - ¶ms, &pdev->dev, "CI_Y"); > + pcdev->dma_chans[0] = dma_request_slave_channel(&pdev->dev, "CI_Y"); > if (!pcdev->dma_chans[0]) { > dev_err(&pdev->dev, "Can't request DMA for Y\n"); > return -ENODEV; > } > > - params.drcmr = 69; > - pcdev->dma_chans[1] = > - dma_request_slave_channel_compat(mask, pxad_filter_fn, > - ¶ms, &pdev->dev, "CI_U"); > + pcdev->dma_chans[1] = dma_request_slave_channel(&pdev->dev, "CI_U"); > if (!pcdev->dma_chans[1]) { > dev_err(&pdev->dev, "Can't request DMA for Y\n"); > err = -ENODEV; > goto exit_free_dma_y; > } > > - params.drcmr = 70; > - pcdev->dma_chans[2] = > - dma_request_slave_channel_compat(mask, pxad_filter_fn, > - ¶ms, &pdev->dev, "CI_V"); > + pcdev->dma_chans[2] = dma_request_slave_channel(&pdev->dev, "CI_V"); > if (!pcdev->dma_chans[2]) { > dev_err(&pdev->dev, "Can't request DMA for V\n"); > err = -ENODEV; >