From patchwork Wed Mar 13 10:52:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vikas C Sajjan X-Patchwork-Id: 15336 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id A144723E64 for ; Wed, 13 Mar 2013 10:52:35 +0000 (UTC) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by fiordland.canonical.com (Postfix) with ESMTP id 52AD6A182A0 for ; Wed, 13 Mar 2013 10:52:35 +0000 (UTC) Received: by mail-ve0-f174.google.com with SMTP id pb11so610211veb.33 for ; Wed, 13 Mar 2013 03:52:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=+BuQldjNfwY0H3StNR5zpathMNmjtbXwbcsBeiULjH8=; b=L//X8D3zrQZSOli0u7y+GVuOgkjP+7K9Ztx3K3OzY00qL93V6TUdRCkh/2hf/yTnuu CLlFcUocAgxZwzCUZKdZ8aR8u+iqpHZs2aHi8AMKCN6ttQi4Tf16Eof8gW9uJ6TBN1MZ vj2R9FBk1VyUNk08ZKd5ZQId5pwqD0tYj9S9+j25d/kcPfekKMqXMs2JV3aj8p4Opl2V YNIC40ensCSZzGxbmhM2SpFesfia3ZOuwtgb+cNmXdJYBeRgtXmLKKL4vtNjgiJYckE1 NBZXNRWlQv03oAD7WTS2r22bGnmx0bABKPAb7khQ09Iqml4hXYUZvRu0rOqSYNsDenia ifUQ== X-Received: by 10.52.18.148 with SMTP id w20mr6969676vdd.8.1363171954713; Wed, 13 Mar 2013 03:52:34 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp12618veb; Wed, 13 Mar 2013 03:52:33 -0700 (PDT) X-Received: by 10.68.0.170 with SMTP id 10mr37639963pbf.59.1363171952988; Wed, 13 Mar 2013 03:52:32 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id zs4si35174360pbc.102.2013.03.13.03.52.31 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Mar 2013 03:52:32 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of vikas.sajjan@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of vikas.sajjan@linaro.org) smtp.mail=vikas.sajjan@linaro.org Received: by mail-pb0-f50.google.com with SMTP id up1so887741pbc.23 for ; Wed, 13 Mar 2013 03:52:31 -0700 (PDT) X-Received: by 10.68.135.38 with SMTP id pp6mr45188268pbb.111.1363171951249; Wed, 13 Mar 2013 03:52:31 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id y13sm25319396pbv.0.2013.03.13.03.52.26 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Mar 2013 03:52:30 -0700 (PDT) From: Vikas Sajjan To: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org, kgene.kim@samsung.com, joshi@samsung.com, inki.dae@samsung.com, linaro-kernel@lists.linaro.org, jy0922.shim@samsung.com Subject: [PATCH] drm/exynos: change the method for getting the interrupt resource of FIMD Date: Wed, 13 Mar 2013 16:22:19 +0530 Message-Id: <1363171939-9672-1-git-send-email-vikas.sajjan@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnHRGGArfWkwaP7dDd6NnQJ+f/uyR5flSBTvys7Bp0K2sKftIpBNJfatL+iPkzfgZbDbJvm Replaces the "platform_get_resource() for IORESOURCE_IRQ" with platform_get_resource_byname(). Both in exynos4 and exynos5, FIMD IP has 3 interrupts in the order: "fifo", "vsync", and "lcd_sys". But The FIMD driver expects the "vsync" interrupt to be mentioned as the 1st parameter in the FIMD DT node. So to meet this expectation of the driver, the FIMD DT node was forced to be made by keeping "vsync" as the 1st paramter. For example in exynos4, the FIMD DT node has interrupt numbers mentioned as <11, 1> <11, 0> <11, 2> keeping "vsync" as the 1st paramter. This patch fixes the above mentioned "hack" of re-ordering of the FIMD interrupt numbers by getting interrupt resource of FIMD by using platform_get_resource_byname(). Signed-off-by: Vikas Sajjan --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 1ea173a..cd79d38 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -945,7 +945,7 @@ static int fimd_probe(struct platform_device *pdev) return -ENXIO; } - res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); + res = platform_get_resource_byname(pdev, IORESOURCE_IRQ, "vsync"); if (!res) { dev_err(dev, "irq request failed.\n"); return -ENXIO;