Received: by 10.192.165.148 with SMTP id m20csp1648260imm; Sat, 21 Apr 2018 12:31:41 -0700 (PDT) X-Google-Smtp-Source: AIpwx484pEVgYLzrZbpjcrZrwd4sjOvAbG5fDKVq2u45bLkxN2PkfANZSo0B6WFYBSdWttJECPHo X-Received: by 10.99.121.76 with SMTP id u73mr12160000pgc.380.1524339101598; Sat, 21 Apr 2018 12:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524339101; cv=none; d=google.com; s=arc-20160816; b=l5oErv/fZ/OLvXlUHQbVb75u+sg4YM6GBzI1QH8W76Uk7dGn+uCE23MlTLtJJmWFXd UxuOZez45+FkV8j+bfVKj+VDIVIaa59mYcVI1u9GyUqhRRUvjHS8CtalE8QaFZfwx0PE coIijk+/LSggks/IwRDjJ1YFphWloBMyS/IoY4UuK85eoCph3/vd36BpH0STqyeYSi5C iZwIu7JRtvtCXAbHaBOftf6CWF0PQQ3vS5g0zmeCWZaM8B8R+QG9ixt49IVTHbPPXJbM I7cL0vK2xT2MfPaBdAyRQrS1A3U4jpS0XkJUKmdAYqRB2mix6kgqnA6SWDcZ+xGs4lOH fkDA== 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=Yz7SHiMHdcgj0KmokLpeVJQvtBvq3YnrjGgVNeWqlTw=; b=ck6nphXgFadGKWSPv72dw9Wy9b9NCvYGLPvXozRwMiDmI2avaridLdvss1UGPcUA3s 4v/4sCuYBx5AM8yYuhu7gXSxw6x7w6Lc1T+928AEIpRdcG9h6uBmpK4HQ2DJ0lEp1jPO CuxHItglPIBZnp0bH1T4OZp8mv8zYrXPb1nG2uaASMKqbm7B2XMJhbz0pxyEgg0uojX3 DpsMHlkC3uF5qm6FfCOVPQYiSxnmELudrc/YrIYBWwRhSXSmShHUdpp7zHAdP4KuPUOl dhUIVYRCxYu705C4UWkPg+PndAbyw0g1WYwYcEM4UnYLRBZNO+Vx14bfx2fMFq2xA7QA wcCg== 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 f7si6919810pgq.207.2018.04.21.12.30.54; Sat, 21 Apr 2018 12:31:41 -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 S1753312AbeDUT1q (ORCPT + 99 others); Sat, 21 Apr 2018 15:27:46 -0400 Received: from smtp13.smtpout.orange.fr ([80.12.242.135]:16979 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753158AbeDUT1p (ORCPT ); Sat, 21 Apr 2018 15:27:45 -0400 Received: from belgarion ([90.55.212.125]) by mwinf5d71 with ME id d7Tj1x00J2itRW2037TjaE; Sat, 21 Apr 2018 21:27:44 +0200 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sat, 21 Apr 2018 21:27:44 +0200 X-ME-IP: 90.55.212.125 From: Robert Jarzmik To: Hans Verkuil Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, robert.jarzmik@free.fr Subject: Re: [PATCH 04/15] media: pxa_camera: remove the dmaengine compat need References: <20180402142656.26815-1-robert.jarzmik@free.fr> <20180402142656.26815-5-robert.jarzmik@free.fr> X-URL: http://belgarath.falguerolles.org/ Date: Sat, 21 Apr 2018 21:27:43 +0200 In-Reply-To: <20180402142656.26815-5-robert.jarzmik@free.fr> (Robert Jarzmik's message of "Mon, 2 Apr 2018 16:26:45 +0200") Message-ID: <871sf8z7f4.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: > 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 > --- > drivers/media/platform/pxa_camera.c | 22 +++------------------- > 1 file changed, 3 insertions(+), 19 deletions(-) Hans, could I have your ack please ? Cheers. -- Robert PS: The submitted patch > > 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;