From patchwork Sat Dec 22 08:49:25 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eunchul Kim X-Patchwork-Id: 1905581 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 6AC063FCA5 for ; Sat, 22 Dec 2012 08:53:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E447E6079 for ; Sat, 22 Dec 2012 00:53:49 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTP id 72385E5BFB for ; Sat, 22 Dec 2012 00:49:40 -0800 (PST) Received: from epcpsbgm2.samsung.com (epcpsbgm2 [203.254.230.27]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MFF0003BCINHOB0@mailout4.samsung.com> for dri-devel@lists.freedesktop.org; Sat, 22 Dec 2012 17:49:35 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.45]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id B5.5D.12699.F1475D05; Sat, 22 Dec 2012 17:49:35 +0900 (KST) X-AuditID: cbfee61b-b7f616d00000319b-be-50d5741ff3fe Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A4.5D.12699.F1475D05; Sat, 22 Dec 2012 17:49:35 +0900 (KST) Received: from localhost.localdomain ([10.90.54.32]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MFF00JZNCIJQC10@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Sat, 22 Dec 2012 17:49:35 +0900 (KST) From: Eunchul Kim To: dri-devel@lists.freedesktop.org, inki.dae@samsung.com Subject: [PATCH v3 4/8] drm/exynos: fix build warning. Date: Sat, 22 Dec 2012 17:49:25 +0900 Message-id: <1356166169-3400-5-git-send-email-chulspro.kim@samsung.com> X-Mailer: git-send-email 1.7.0.4 In-reply-to: <1356166169-3400-1-git-send-email-chulspro.kim@samsung.com> References: <1356166169-3400-1-git-send-email-chulspro.kim@samsung.com> DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHLMWRmVeSWpSXmKPExsVy+t8zXV35kqsBBk279CyufH3P5sDocb/7 OFMAYxSXTUpqTmZZapG+XQJXxv/uHpaCv+wV3z5OYG1gfMjWxcjJISFgInHn7hcoW0ziwr31 QDYXh5DAMkaJlV+/s8AUbdy0lB0iMZ1RYv6Jt1BVK5gk/n76xQ5SxSagI3HkVjMziC0iYCnx YOtvZpAiZoGfjBLrnpxlBUkIC5hJPJ+3HqyIRUBV4sq/TWAreAXcJdYu3sIIsU5BonXZIbCh nAIeEp3LloL1CgHV9C9vZoHoFZD4NvkQkM0BVC8rsekA2C4JgctsEvOOT2KHmCMpcXDFDZYJ jMILGBlWMYqmFiQXFCel5xrpFSfmFpfmpesl5+duYoQEovQOxlUNFocYBTgYlXh4LzZdCRBi TSwrrsw9xCjBwawkwrvF4GqAEG9KYmVValF+fFFpTmrxIUYfoEsmMkuJJucDoySvJN7Q2MDY 0NDS0MzU0tQAh7CSOG+zR0qAkEB6YklqdmpqQWoRzDgmDk6pBsYcBhulzfdWHdi0Ubjotrqm 98RTE+QYY5eeajP3y9qbw1J2JKyQX/q52Z5Th2NfO0Uy18hefxeXovg619n1HNshpx2+Dzte qIvc2l7KKfug90p8UtgOp/KKZX5WfXnLmKwPNykfV7X+IvaXfwb/o917k+ddZ3U/dMFqYdYR 20OVAZO1z8Ze2KzEUpyRaKjFXFScCAA297ricQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFuplkeLIzCtJLcpLzFFi42I5/e+xoK58ydUAg9NPNC2ufH3P5sDocb/7 OFMAY1QDo01GamJKapFCal5yfkpmXrqtkndwvHO8qZmBoa6hpYW5kkJeYm6qrZKLT4CuW2YO 0FglhbLEnFKgUEBicbGSvh2mCaEhbroWMI0Rur4hQXA9RgZoIGEdY8b/7h6Wgr/sFd8+TmBt YHzI1sXIySEhYCKxcdNSdghbTOLCvfVAcS4OIYHpjBLzT7yFclYwSfz99Ausik1AR+LIrWZm EFtEwFLiwdbfzCBFzAI/GSXWPTnLCpIQFjCTeD5vPVgRi4CqxJV/m1hAbF4Bd4m1i7cwQqxT kGhddghsKKeAh0TnsqVgvUJANf3Lm1kmMPIuYGRYxSiaWpBcUJyUnmukV5yYW1yal66XnJ+7 iREc5s+kdzCuarA4xCjAwajEw3ux6UqAEGtiWXFl7iFGCQ5mJRHeLQZXA4R4UxIrq1KL8uOL SnNSiw8x+gBdNZFZSjQ5HxiDeSXxhsYmZkaWRmbGJubGxjiElcR5mz1SAoQE0hNLUrNTUwtS i2DGMXFwSjUwCpoZ3V6inv9q9uxi02lnttTwqJv3bRRKcOM7lG92fUrcdSlboZQaQ2dLsd2r eqM1ztjcY1mnzLjuHY/+3WKFrPMnmJtN91uc+5fdyvePcXPL41KVKnuPPZdtsjuWphp0B126 Z/ha2zKwLUdkRs3SV2pFO7dfOqaynt3gkfbpJvlUi6w3tT+VWIozEg21mIuKEwGefR9voAIA AA== X-CFilter-Loop: Reflected Cc: jy0.jeon@samsung.com, sw0312.kim@samsung.com, jaejoon.seo@samsung.com, kyungmin.park@samsung.com, jmock.shin@samsung.com, lsmin.lee@samsung.com, th908.kim@samsung.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org This patch fixes erroneous register read. reall function needs register base address + offset but exynos_drm_gsc module used only offset to read a register. so this patch uses gsc_read function instead of readl. Signed-off-by: Eunchul Kim --- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 3e5b456..410175a 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -1592,7 +1592,7 @@ static int gsc_ippdrv_start(struct device *dev, enum drm_exynos_ipp_cmd cmd) exynos_drm_ippnb_send_event(IPP_SET_WRITEBACK, (void *)&set_wb); /* src local path */ - cfg = readl(GSC_IN_CON); + cfg = gsc_read(GSC_IN_CON); cfg &= ~(GSC_IN_PATH_MASK | GSC_IN_LOCAL_SEL_MASK); cfg |= (GSC_IN_PATH_LOCAL | GSC_IN_LOCAL_FIMD_WB); gsc_write(cfg, GSC_IN_CON);