From patchwork Mon Apr 15 23:44:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 10901729 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 90D2414DB for ; Mon, 15 Apr 2019 23:44:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A66327F60 for ; Mon, 15 Apr 2019 23:44:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BC10286C4; Mon, 15 Apr 2019 23:44:08 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2224827F60 for ; Mon, 15 Apr 2019 23:44:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E5BE7894FF; Mon, 15 Apr 2019 23:43:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTPS id B365E894C0 for ; Mon, 15 Apr 2019 23:43:54 +0000 (UTC) Received: from epcas1p3.samsung.com (unknown [182.195.41.47]) by mailout1.samsung.com (KnoxPortal) with ESMTP id 20190415234352epoutp018bfa0c81556abd8846d1226b4b016918~VynDkp1Vu2898228982epoutp01J for ; Mon, 15 Apr 2019 23:43:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.samsung.com 20190415234352epoutp018bfa0c81556abd8846d1226b4b016918~VynDkp1Vu2898228982epoutp01J Received: from epsmges1p5.samsung.com (unknown [182.195.40.152]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20190415234349epcas1p37122516d6c68e7b2a1aa7f6a39963c41~VynA4gUuj0313803138epcas1p3Q; Mon, 15 Apr 2019 23:43:49 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 61.EC.04108.F2715BC5; Tue, 16 Apr 2019 08:43:43 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p3.samsung.com (KnoxPortal) with ESMTPA id 20190415234343epcas1p35dc30c370ab5502373ae876d1ac5691b~Vym7N2QfI1982019820epcas1p3H; Mon, 15 Apr 2019 23:43:43 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190415234343epsmtrp242b0e1d0242409911f0877e4c320221f~Vym7Ku7yb1366813668epsmtrp2M; Mon, 15 Apr 2019 23:43:43 +0000 (GMT) X-AuditID: b6c32a39-89fff7000000100c-bd-5cb5172f0055 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 44.D8.03692.F2715BC5; Tue, 16 Apr 2019 08:43:43 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.221.211]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190415234343epsmtip1dc0a86b0b0e004bf91b56e8f7ce54de7~Vym7BCmQX2260822608epsmtip1L; Mon, 15 Apr 2019 23:43:43 +0000 (GMT) From: Inki Dae To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/6] drm/exynos: fimd: use DRM_ERROR instead of DRM_INFO in error case Date: Tue, 16 Apr 2019 08:44:02 +0900 Message-Id: <1555371847-25253-2-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555371847-25253-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrJKsWRmVeSWpSXmKPExsWy7bCmrq6++NYYg943lhZXvr5ns5h0fwKL xYzz+5gcmD3udx9n8ujbsorR4/MmuQDmqGybjNTElNQihdS85PyUzLx0WyXv4HjneFMzA0Nd Q0sLcyWFvMTcVFslF58AXbfMHKBFSgpliTmlQKGAxOJiJX07m6L80pJUhYz84hJbpdSClJwC ywK94sTc4tK8dL3k/FwrQwMDI1OgwoTsjOlntQqucVcc2KnfwHiJs4uRg0NCwETiY7duFyMX h5DADkaJCW27mCCcT4wSPR9+s0E43xglDj78CJThBOu42PEQqmovo8S5jg+MEM4XRolfF5uZ QarYBFQlJq64zwZiiwgoS/yduIoRxGYWcJNYfHo5C8huYYEIiS/zHEDCLEDlm9t3gS3gFXCR mHBkOSPEMjmJm+c6wUZyCrhK9FyYxQYRf8kqcXyxAYTtInF8SQs7hC0s8er4FihbSuLzu71Q 9eUSz949Y4F4uUbi29wKCNNY4uKKFBCTWUBTYv0ufYgb+STefe1hhajglehoE4KYoSRx7OIN qLskJC4smQg120Pi1MGX0DCYwSixYFUDywRG2VkIUxcwMq5iFEstKM5NTy02LDBFjp9NjOBk o2W5g/HYOZ9DjAIcjEo8vBw9W2KEWBPLiitzDzFKcDArifA6pgCFeFMSK6tSi/Lji0pzUosP MZoCg24is5Rocj4wEeaVxBuaGhkbG1uYGJqZGhoqifOud3COERJITyxJzU5NLUgtgulj4uCU amBs6nveNvnF2juFce42T1VmWn7ZJbA1/puP00OTH9P0FoVIb9OIbstfPD1M8IVl5IGrKWu4 mBi18g/vn/lh+QLbae5Hr98p2Bd6bGrMPUP2mXtSIydr8df/c9tjusH57ddlyiEi6hzBjPH9 utIvduQYzGdO18ps5r6u/N5EOqi7Q4M3kJM76p8SS3FGoqEWc1FxIgAwg7N2TAMAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgluLIzCtJLcpLzFFi42LZdlhJTldffGuMQf9bKYsrX9+zWUy6P4HF Ysb5fUwOzB73u48zefRtWcXo8XmTXABzFJdNSmpOZllqkb5dAlfG9LNaBde4Kw7s1G9gvMTZ xcjJISFgInGx4yETiC0ksJtRonkSexcjB1BcQmLLVg4IU1ji8OHiLkYuoIpPjBKbH15mBiln E1CVmLjiPhuILSKgLPF34ipGEJtZwEPi1KufYDXCAmESB/rWgdWwANVvbt8FtopXwEViwpHl jBAnyEncPNcJVs8p4CrRc2EWG8heIaCaydMVJzDyLWBkWMUomVpQnJueW2xYYJiXWq5XnJhb XJqXrpecn7uJERwuWpo7GC8viT/EKMDBqMTDm9C3JUaINbGsuDL3EKMEB7OSCK9jClCINyWx siq1KD++qDQntfgQozQHi5I479O8Y5FCAumJJanZqakFqUUwWSYOTqkGxnChjxe/FLHHVMlc XbNs77VJh4xM+3479C+yTL88j+vW+tZGQZttnRI3bwt/8vhmmLJmf3TH6sOMy92M09sfW5ul H4z7f9c5+tSd3gsmMlfc5ym2fEsuPcPwkv+Ec5iW01WfvTMvNZvZBAlvZeYzsgpbaX1JOlyj 0S7d6/auTo3C1LlJm5TrlFiKMxINtZiLihMBMOHvdRMCAAA= X-CMS-MailID: 20190415234343epcas1p35dc30c370ab5502373ae876d1ac5691b X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190415234343epcas1p35dc30c370ab5502373ae876d1ac5691b References: <1555371847-25253-1-git-send-email-inki.dae@samsung.com> X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555371832; bh=QX0RdlbFA7LzGdqZF8qqaGEUSBV+wnCSprjmclIiT3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oXpxjh5hKSGUU7LkaKqmJAnhjdvOR6VIBAujyGCn0rVPDG7gM9NWJyUrYSSfDfNjO NuU75wqK4iLvE7xI0ig9veqT7Qqbx5gWOdevzJnF5w8BqUd8Ah6Nlp5Ps1J+fhT5kY /YpvHBjAr6yAT5/rMUHmJkD8gWoBU8HzQBpoNe8I= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-samsung-soc@vger.kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch makes error messages to be printed out using DRM_ERROR instead of DRM_INFO. Signed-off-by: Inki Dae --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 786a8ee..78427ec 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -400,7 +400,7 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc, u32 clkdiv; if (mode->clock == 0) { - DRM_INFO("Mode has zero clock value.\n"); + DRM_ERROR("Mode has zero clock value.\n"); return -EINVAL; } @@ -416,7 +416,7 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc, lcd_rate = clk_get_rate(ctx->lcd_clk); if (2 * lcd_rate < ideal_clk) { - DRM_INFO("sclk_fimd clock too low(%lu) for requested pixel clock(%lu)\n", + DRM_ERROR("sclk_fimd clock too low(%lu) for requested pixel clock(%lu)\n", lcd_rate, ideal_clk); return -EINVAL; } @@ -424,7 +424,7 @@ static int fimd_atomic_check(struct exynos_drm_crtc *crtc, /* Find the clock divider value that gets us closest to ideal_clk */ clkdiv = DIV_ROUND_CLOSEST(lcd_rate, ideal_clk); if (clkdiv >= 0x200) { - DRM_INFO("requested pixel clock(%lu) too low\n", ideal_clk); + DRM_ERROR("requested pixel clock(%lu) too low\n", ideal_clk); return -EINVAL; }