Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3057561imm; Sun, 17 Jun 2018 10:04:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIItVKMFN8lRdrqbgj3yCXtUUjpkqABMJbEOp8iX+E3Ay6mH0Z0qvPmdp6sZrL8VyOCuP0d X-Received: by 2002:a63:62c7:: with SMTP id w190-v6mr8617121pgb.104.1529255054990; Sun, 17 Jun 2018 10:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529255054; cv=none; d=google.com; s=arc-20160816; b=ZltQUnrtsEBlXKbheiKPv7Q9Rqh/YaeDTkevYOMA989COqUEqH2pRKu0udYj/Cu5OM W+RZGTyZiUm9JYmbpdz84b2Aq2oYG1UHoyABL2QO2FZxILp+1aptcAwIByfXNt0af2sb 0cGY5e6QZdziMkgIihUXCZWR3EFK3aVdZlrIj55h3StOwy6uuBmnLUZOSDawc7VhvONT 7+uZlnGWGUJHZJjOwN2F/Uvmzaw4vPOxohwn2p8hIa2o6vctcxBDySfV1PbzzSnvelVs xjgFgMBaEpaOgBCk4hxcb/+sGJTm0/QKLJ2lkykGceCX45FU4OvwwCd6FjtFu+fJvTDd gpwQ== 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=9yNqGZr3ET4f6QLKkzwoBz4DT6D/TnxHqr9vPiUlbJc=; b=nNQJx254ugUWSt0LpsX+4WMIPCP54owI2Rv31YRbH/IjPYFL/FVMO7pC5UiTIovn0K K0xJkQTYe1qcm2tOKhjhflxAXfI/JyLADeajtMJR2ob6UpsUkm0DA3/jHvhGFtOcX7Pr bAcRzMFW/qLWh4rIK0Q7cAlm6xgpbKYPX/LVqdhg5vo6HHDzL94qbj9exVSLfLeey1jv NrJap/rX9NjRZKvsTVhu26PNjBOn79k0CY9lYLvFDgF6oURflBQUBbWla4hUnWKy3LMr EmeJuctY9N0a3O3L5WCW8IPKjG7YAvTYxVnmjv2NytJkvTUfJlQwNiGtN9hVgSgLXjNO LgxQ== 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 q11-v6si10401482pgp.95.2018.06.17.10.04.00; Sun, 17 Jun 2018 10:04:14 -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 S936795AbeFQRDZ (ORCPT + 99 others); Sun, 17 Jun 2018 13:03:25 -0400 Received: from smtp07.smtpout.orange.fr ([80.12.242.129]:60642 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934559AbeFQRDH (ORCPT ); Sun, 17 Jun 2018 13:03:07 -0400 Received: from belgarion.home ([90.55.203.186]) by mwinf5d83 with ME id zt2e1x00N41oiFu03t34Pu; Sun, 17 Jun 2018 19:03:05 +0200 X-ME-Helo: belgarion.home X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Sun, 17 Jun 2018 19:03:05 +0200 X-ME-IP: 90.55.203.186 From: Robert Jarzmik To: Daniel Mack , Haojian Zhuang , Robert Jarzmik , 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 Subject: [PATCH v3 05/14] media: pxa_camera: remove the dmaengine compat need Date: Sun, 17 Jun 2018 19:02:08 +0200 Message-Id: <20180617170217.24177-6-robert.jarzmik@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180617170217.24177-1-robert.jarzmik@free.fr> References: <20180617170217.24177-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: Hans Verkuil Acked-by: Mauro Carvalho Chehab --- 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; -- 2.11.0