From patchwork Thu Nov 6 10:32:45 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 5240871 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2F632C11AC for ; Thu, 6 Nov 2014 10:32:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5204A20107 for ; Thu, 6 Nov 2014 10:32:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 54C3A200F4 for ; Thu, 6 Nov 2014 10:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751692AbaKFKct (ORCPT ); Thu, 6 Nov 2014 05:32:49 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:22881 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751846AbaKFKcs (ORCPT ); Thu, 6 Nov 2014 05:32:48 -0500 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NEM00CG55AM88B0@mailout4.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 06 Nov 2014 19:32:46 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id 17.FB.17016.E4E4B545; Thu, 06 Nov 2014 19:32:46 +0900 (KST) X-AuditID: cbfee68d-f79296d000004278-8f-545b4e4e33c9 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id BB.91.20081.E4E4B545; Thu, 06 Nov 2014 19:32:46 +0900 (KST) Received: from daeinki-desktop.10.32.193.11 ([10.252.83.67]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NEM00K8E5AL2C60@mmp2.samsung.com>; Thu, 06 Nov 2014 19:32:46 +0900 (KST) From: Inki Dae To: airlied@linux.ie, dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, Inki Dae Subject: [PATCH] drm/exynos: resolve infinite loop issue on multi-platform Date: Thu, 06 Nov 2014 19:32:45 +0900 Message-id: <1415269965-427-1-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFLMWRmVeSWpSXmKPExsWyRsSkSNfPLzrE4NglYYvecyeZLK58fc9m Men+BBaLGef3MTmweGz/9oDV4373cSaPvi2rGD0+b5ILYInisklJzcksSy3St0vgymj+Gl8w g6ti/XzjBsYdHF2MHBwSAiYSPZ3RXYycQKaYxIV769m6GLk4hASWMkocetvPAlOz82MUSI2Q wHRGiYOXdCBqupkk5j+6yQqSYBNQlZi44j4biC0iYCrRMWkpC4jNLOAmsfj0cjBbWMBLYn7X LCYQmwWovufvN0YQm1fASeL52oVMELsUJOZMsgGZLyFwn03i8v3pUPUCEt8mH4K6R1Zi0wFm iJslJQ6uuMEygVFwASPDKkbR1ILkguKk9CJDveLE3OLSvHS95PzcTYzAIDz971nvDsbbB6wP MQpwMCrx8AqciAoRYk0sK67MPcRoCrRhIrOUaHI+MNTzSuINjc2MLExNTI2NzC3NlMR5FaV+ BgsJpCeWpGanphakFsUXleakFh9iZOLglGpgNPFJa/nk4/MwcVnbZ89VYeJblbm9vTaG7HiR duD7+87Lu3+6WmQpLnfkic4J53Q8O+Fk7A/PjPei9QXF73f1/TGpmnnLpunYotmPM8LjhO8Z pF8J2u41K2aN7Rfnz0qt2pt9eW4mz9u198K92n28J7/v42azbVIVn+YgtiMq7enxd1WzQ0P/ KrEUZyQaajEXFScCAIOaSiE9AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrKLMWRmVeSWpSXmKPExsVy+t9jQV0/v+gQg417eCx6z51ksrjy9T2b xaT7E1gsZpzfx+TA4rH92wNWj/vdx5k8+rasYvT4vEkugCWqgdEmIzUxJbVIITUvOT8lMy/d Vsk7ON453tTMwFDX0NLCXEkhLzE31VbJxSdA1y0zB2inkkJZYk4pUCggsbhYSd8O04TQEDdd C5jGCF3fkCC4HiMDNJCwhjGj+Wt8wQyuivXzjRsYd3B0MXJwSAiYSOz8GNXFyAlkiklcuLee DcQWEpjOKHHwkk4XIxeQ3c0kMf/RTVaQBJuAqsTEFffBikQETCU6Ji1lAbGZBdwkFp9eDmYL C3hJzO+axQRiswDV9/z9xghi8wo4STxfu5AJYq+CxJxJNhMYuRcwMqxiFE0tSC4oTkrPNdQr TswtLs1L10vOz93ECA7yZ1I7GFc2WBxiFOBgVOLh3XE0KkSINbGsuDL3EKMEB7OSCK+CY3SI EG9KYmVValF+fFFpTmrxIUZToOUTmaVEk/OBEZhXEm9obGJmZGlkbmhhZGyuJM57oNU6UEgg PbEkNTs1tSC1CKaPiYNTqoFR5LG+zcllhwv5RFeYR77SPCF2/FDBrxcCOXuf/dfnK7iyP8XW /YeR1+QEyTzlhIAbrdWrDKb/0l53zf66pdHZ/k0MMf4scQsdeUS1fwmf/8gedi/j1SU1jpYN 3YGbN9xdxCAmENGa5BxdtmbGdL1Qza9vD2pKb95fVnD2qO7tm6XHlX/27i5VYinOSDTUYi4q TgQAbxqiNogCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch resolves temporarily infinite loop issue incurred when Exynos drm driver is enabled and multi-platform kernel is used by registering Exynos drm device object only in case of Exynos SoC. So this patch will be replaced with more generic way later. Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.c b/drivers/gpu/drm/exynos/exynos_drm_drv.c index 443a206..ecc86aa 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.c +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.c @@ -734,6 +734,18 @@ static int exynos_drm_init(void) { int ret; + /* + * Register device object only in case of Exynos SoC. + * + * Below codes resolves temporarily infinite loop issue incurred + * by Exynos drm driver when using multi-platform kernel. + * So these codes will be replaced with more generic way later. + */ + if (!of_machine_is_compatible("samsung,exynos3") && + !of_machine_is_compatible("samsung,exynos4") && + !of_machine_is_compatible("samsung,exynos5")) + return -ENODEV; + exynos_drm_pdev = platform_device_register_simple("exynos-drm", -1, NULL, 0); if (IS_ERR(exynos_drm_pdev))