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: 9521047 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 517B1601C3 for ; Tue, 17 Jan 2017 13:54:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3376128564 for ; Tue, 17 Jan 2017 13:54:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2867928568; Tue, 17 Jan 2017 13:54:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B75B328564 for ; Tue, 17 Jan 2017 13:54:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751255AbdAQNyb (ORCPT ); Tue, 17 Jan 2017 08:54:31 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:37992 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751235AbdAQNyb (ORCPT ); Tue, 17 Jan 2017 08:54:31 -0500 Received: by mail-wm0-f52.google.com with SMTP id r144so223454287wme.1 for ; Tue, 17 Jan 2017 05:54:30 -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=D0opwMbRJyxJHV+zS1BPNc/mvwsC2vzFEd1RZkRTOE2wrMhUQ6H6y7HnUmUygJF1dh CtM1F2YikejB9JEoRLae1OXrsdmwSpKdiHbSEIMn/0x6DkhyzygCM9F3EPxa1jkGNkig hxLJZy7wYpz3VkJVoZHBAOd4uvFr6NLTVzm27ph7RuXybD1b2WblG9s1q2RioLa7vY6S YaL7HFWI2Bw0tkuNQ0RkePeB5OcBm2+uvubQPFgSpB17+x3Pcgv+tBftEi9qiWuiNmPQ aDMlOBId86qvPJni2IoI3ha+mzI8VqBS3G0yTz3wEWQ27iGVfUUrgT6zwSLUK+0Dd/Z4 LdHg== X-Gm-Message-State: AIkVDXLPrtl+W8O3eTQ/1dCAttlMn4mHGURYQnx2WFQUYqZlcAuuewilmUN1b4roM58JJ+5G 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: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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);