From patchwork Fri Jun 17 07:54:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 70289 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp153634qgy; Fri, 17 Jun 2016 00:55:01 -0700 (PDT) X-Received: by 10.66.182.194 with SMTP id eg2mr968498pac.159.1466150086928; Fri, 17 Jun 2016 00:54:46 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id un5si42494297pab.174.2016.06.17.00.54.46; Fri, 17 Jun 2016 00:54:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755325AbcFQHyp (ORCPT + 4 others); Fri, 17 Jun 2016 03:54:45 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:36842 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754013AbcFQHyo (ORCPT ); Fri, 17 Jun 2016 03:54:44 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0O8W00C62ON53F00@mailout1.w1.samsung.com> for linux-samsung-soc@vger.kernel.org; Fri, 17 Jun 2016 08:54:41 +0100 (BST) X-AuditID: cbfec7f5-f792a6d000001302-82-5763acc1a278 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 16.AB.04866.1CCA3675; Fri, 17 Jun 2016 08:54:41 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0O8W00AVTOMWCT10@eusync1.samsung.com>; Fri, 17 Jun 2016 08:54:41 +0100 (BST) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Joonyoung Shim , Seung-Woo Kim , Andrzej Hajda , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH v2 3/5] drm/exynos: iommu: remove unused entries from exynos_drm_private strcuture Date: Fri, 17 Jun 2016 09:54:25 +0200 Message-id: <1466150067-8065-4-git-send-email-m.szyprowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1466150067-8065-1-git-send-email-m.szyprowski@samsung.com> References: <1466150067-8065-1-git-send-email-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprCLMWRmVeSWpSXmKPExsVy+t/xy7oH1ySHG5ydyWtxa905VouNM9az Wlz5+p7NYtL9CSwWL+5dZLF4/cLQYsb5fUwWa4/cZbeYMfklmwOnx/3u40wefVtWMXp83iQX wBzFZZOSmpNZllqkb5fAlTFl2Uzmgkl8FZv3HWBuYJzP08XIySEhYCLx8HcHI4QtJnHh3nq2 LkYuDiGBpYwSh0/+ZoFwmpgk5q64xA5SxSZgKNH1tosNxBYRcJNoOjyTFaSIWWALk0T7ro1M IAlhgRSJ3v/LwBpYBFQlzkw/wQpi8wq4S7xrv80CsU5O4uSxyWBxTgEPiYf7e8DOEAKqmXt+ KcsERt4FjAyrGEVTS5MLipPSc430ihNzi0vz0vWS83M3MULC6usOxqXHrA4xCnAwKvHwrhBN DhdiTSwrrsw9xCjBwawkwsu4CijEm5JYWZValB9fVJqTWnyIUZqDRUmcd+au9yFCAumJJanZ qakFqUUwWSYOTqkGRsmf1/uEtbl//S3jz3I49TXXd9H7pr0Nx7qE2Er+1jybPWPytV1ruBsm bg+L9BfjVdnlI9V1juNmGucXR3WHa49+u/iIMAnP81Ja87vwa/bnmQtuJ6iZtP+annhaXuG+ poBBe9jX/i/R0s/dErY+urhX+nj4nBvLO17OKeUSY7zaXNruVJ7tpMRSnJFoqMVcVJwIAImT zlonAgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org This patch removes unused entries from exynos_drm_private strcuture. da_start/da_space_size were only used in drm_create_iommu_mapping() function and never set to other value than the defaults. Instead use default values directly in arm_iommu_create_mapping() call. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 -- drivers/gpu/drm/exynos/exynos_drm_iommu.c | 9 ++------- 2 files changed, 2 insertions(+), 9 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" 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/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index cc33ec9296e7..b39d521f093d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h @@ -224,8 +224,6 @@ struct exynos_drm_private { struct drm_property *plane_zpos_property; struct device *dma_dev; - unsigned long da_start; - unsigned long da_space_size; void *mapping; unsigned int pipe; diff --git a/drivers/gpu/drm/exynos/exynos_drm_iommu.c b/drivers/gpu/drm/exynos/exynos_drm_iommu.c index 36dde9691274..0229bad43bd1 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_iommu.c +++ b/drivers/gpu/drm/exynos/exynos_drm_iommu.c @@ -48,13 +48,8 @@ int drm_create_iommu_mapping(struct drm_device *drm_dev) struct dma_iommu_mapping *mapping = NULL; struct exynos_drm_private *priv = drm_dev->dev_private; - if (!priv->da_start) - priv->da_start = EXYNOS_DEV_ADDR_START; - if (!priv->da_space_size) - priv->da_space_size = EXYNOS_DEV_ADDR_SIZE; - - mapping = arm_iommu_create_mapping(&platform_bus_type, priv->da_start, - priv->da_space_size); + mapping = arm_iommu_create_mapping(&platform_bus_type, + EXYNOS_DEV_ADDR_START, EXYNOS_DEV_ADDR_SIZE); if (IS_ERR(mapping)) return PTR_ERR(mapping);