From patchwork Tue Jan 17 13:45:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Bailon X-Patchwork-Id: 91655 Delivered-To: patch@linaro.org Received: by 10.140.20.99 with SMTP id 90csp498808qgi; Tue, 17 Jan 2017 05:53:13 -0800 (PST) X-Received: by 10.84.164.106 with SMTP id m39mr58363252plg.97.1484661193901; Tue, 17 Jan 2017 05:53:13 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q7si3430770pfb.281.2017.01.17.05.53.13; Tue, 17 Jan 2017 05:53:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751244AbdAQNxM (ORCPT + 7 others); Tue, 17 Jan 2017 08:53:12 -0500 Received: from mail-wm0-f54.google.com ([74.125.82.54]:38724 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751177AbdAQNxL (ORCPT ); Tue, 17 Jan 2017 08:53:11 -0500 Received: by mail-wm0-f54.google.com with SMTP id r144so223394005wme.1 for ; Tue, 17 Jan 2017 05:53:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=i+t+duwNsAyA63YDWiQqSVB7zCevby5SsrMAlL1oMyI=; b=JWdK/eXw7qA8nbLeemAUhO2oL07KJiVLaaDC62/fz5GX3lWsDJROS4OzVnCeoZxaZG uflj+lZOHtziZ3S9g8xicBzAAjidnUdNsjhVH3E8U6pCe2Qkql7OnvB4OhXZ8+2ekfXX fLmjVDUpwA5kDDYXgM4h5fKVGc3OSpM/pDP1J3JluC6v2iKhokwi7xDUeYnBCTnrES+4 kH4Er/NPclVig6LlM6W14D2ALCqcneJcjchH4eDmUEc9UL/z6FbJy5Cw3w1a9Z9taeZl 8vcIowbsMb1DOtH8e1T3GyyPNBuimuzPXLypcfnQudd8lg1rqd3GkfHOqKyd1dQ4/BJM 8Rvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=i+t+duwNsAyA63YDWiQqSVB7zCevby5SsrMAlL1oMyI=; b=hII669Tp90b3IybqhiVLOQ/fOjlXh2D/cmmAyhLosknBAk6Oc6V8bSb73uC8j8LiEs oqcSu9IR1qzRXCwQAjcit2iFVkXyduyNNceq7I0P2UfD93Lw/+X0g5xyHhMeFzl0uCAc vhLSZKUKE5ggN1AmQIaQXZksaEj5guztwI5exYiTLgpORbhNBdngk3FOHpzMMVRYteXn ub2NgSSsSO44nDk2neqN32kUu6vLuwtInw42xUswoI+kiO00XVwE9Yfid/g5dtDiCSvF 7X8jEn58AKkS9jEPxYmJCXYhDPAm8DmxR2X9QeXtbfWelHYIgvTabd5/C/QGyZ64PfmG Lprg== X-Gm-Message-State: AIkVDXLoEkk9m9zQArIWn2P1pvanKvhc3RWTtpi6LZjPqzNHufrsPzLZS8WYkDI1fA5p4TST X-Received: by 10.28.63.5 with SMTP id m5mr17032321wma.95.1484660752544; Tue, 17 Jan 2017 05:45:52 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id l187sm37064811wml.6.2017.01.17.05.45.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 17 Jan 2017 05:45:52 -0800 (PST) From: Alexandre Bailon To: vinod.koul@intel.com, b-liu@ti.com, robh+dt@kernel.org Cc: dmaengine@vger.kernel.org, nsekhar@ti.com, khilman@baylibre.com, ptitiano@baylibre.com, tony@atomide.com, linux-omap@vger.kernel.org, sergei.shtylyov@cogentembedded.com, devicetree@vger.kernel.org, Alexandre Bailon Subject: [PATCH v2 3/7] dmaengine: cppi41: Remove usbss_mem Date: Tue, 17 Jan 2017 14:45:36 +0100 Message-Id: <20170117134540.9988-4-abailon@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20170117134540.9988-1-abailon@baylibre.com> References: <20170117134540.9988-1-abailon@baylibre.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org In order to make CPPI 4.1 DMA driver more generic, accesses to USBSS have been removed. So it is not required anymore to map the "glue" register's. Remove usbss_mem. Signed-off-by: Alexandre Bailon --- drivers/dma/cppi41.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) -- 2.10.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c index 4999e7d..ecccf7b 100644 --- a/drivers/dma/cppi41.c +++ b/drivers/dma/cppi41.c @@ -131,7 +131,6 @@ struct cppi41_dd { u32 first_td_desc; struct cppi41_channel *chan_busy[ALLOC_DECS_NUM]; - void __iomem *usbss_mem; void __iomem *ctrl_mem; void __iomem *sched_mem; void __iomem *qmgr_mem; @@ -999,16 +998,15 @@ static int cppi41_dma_probe(struct platform_device *pdev) INIT_LIST_HEAD(&cdd->ddev.channels); cpp41_dma_info.dma_cap = cdd->ddev.cap_mask; - cdd->usbss_mem = of_iomap(dev->of_node, 0); - cdd->ctrl_mem = of_iomap(dev->of_node, 1); - cdd->sched_mem = of_iomap(dev->of_node, 2); - cdd->qmgr_mem = of_iomap(dev->of_node, 3); + cdd->ctrl_mem = of_iomap(dev->of_node, 0); + cdd->sched_mem = of_iomap(dev->of_node, 1); + cdd->qmgr_mem = of_iomap(dev->of_node, 2); spin_lock_init(&cdd->lock); INIT_LIST_HEAD(&cdd->pending); platform_set_drvdata(pdev, cdd); - if (!cdd->usbss_mem || !cdd->ctrl_mem || !cdd->sched_mem || + if (!cdd->ctrl_mem || !cdd->sched_mem || !cdd->qmgr_mem) return -ENXIO; @@ -1068,7 +1066,6 @@ static int cppi41_dma_probe(struct platform_device *pdev) err_get_sync: pm_runtime_put_sync(dev); pm_runtime_disable(dev); - iounmap(cdd->usbss_mem); iounmap(cdd->ctrl_mem); iounmap(cdd->sched_mem); iounmap(cdd->qmgr_mem); @@ -1090,7 +1087,6 @@ static int cppi41_dma_remove(struct platform_device *pdev) devm_free_irq(&pdev->dev, cdd->irq, cdd); cleanup_chans(cdd); deinit_cppi41(&pdev->dev, cdd); - iounmap(cdd->usbss_mem); iounmap(cdd->ctrl_mem); iounmap(cdd->sched_mem); iounmap(cdd->qmgr_mem);