From patchwork Mon Apr 15 00:47:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 10900019 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 D29B4922 for ; Mon, 15 Apr 2019 00:47:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBEDE2012F for ; Mon, 15 Apr 2019 00:47:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B02CC28639; Mon, 15 Apr 2019 00:47:11 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4FF522012F for ; Mon, 15 Apr 2019 00:47:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726233AbfDOArK (ORCPT ); Sun, 14 Apr 2019 20:47:10 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:64265 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726111AbfDOArK (ORCPT ); Sun, 14 Apr 2019 20:47:10 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20190415004708epoutp023415acdfc058e6477ef26529464984f5~Vf1AZu40W1939219392epoutp02P for ; Mon, 15 Apr 2019 00:47:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20190415004708epoutp023415acdfc058e6477ef26529464984f5~Vf1AZu40W1939219392epoutp02P DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1555289228; bh=QX0RdlbFA7LzGdqZF8qqaGEUSBV+wnCSprjmclIiT3c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XO9ra64MoFeu1ZbPAD1Bwsylqn635L/nV8dEPUgoTmTpR9/I+xOIfTpyPeeD8V1LW 0m8vjr065Ftm3Y9lFhwuHJJonSGi/FUEV/HnkbFneH3DUIeH7BA0+cdwTlHCz5EBu5 Zd0xFoLaGaoisCLxBMtDRYtK4PrMKM73CcDQ8MkI= Received: from epsmges1p5.samsung.com (unknown [182.195.40.154]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20190415004705epcas1p378d802e74fbc8e55f450f8c667468e33~Vf09uLVlK2646326463epcas1p3w; Mon, 15 Apr 2019 00:47:05 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p5.samsung.com (Symantec Messaging Gateway) with SMTP id 07.D9.04108.284D3BC5; Mon, 15 Apr 2019 09:46:58 +0900 (KST) Received: from epsmtrp1.samsung.com (unknown [182.195.40.13]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20190415004658epcas1p4203cd2876c49e7157fdab6b17293976e~Vf03JLKyx2782427824epcas1p4I; Mon, 15 Apr 2019 00:46:58 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190415004658epsmtrp12937f72e5f7f69037a0e5d5191424376~Vf03Ig2ib3001730017epsmtrp15; Mon, 15 Apr 2019 00:46:58 +0000 (GMT) X-AuditID: b6c32a39-8b7ff7000000100c-87-5cb3d48256da Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id C3.2F.03662.284D3BC5; Mon, 15 Apr 2019 09:46:58 +0900 (KST) Received: from localhost.localdomain (unknown [10.113.221.211]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190415004658epsmtip1826e155a0fa7bcb29304027be2227fcd~Vf03Ar6e62711727117epsmtip1c; Mon, 15 Apr 2019 00:46:58 +0000 (GMT) From: Inki Dae To: dri-devel@lists.freedesktop.org Cc: linux-samsung-soc@vger.kernel.org, Inki Dae Subject: [PATCH 1/2] drm/fimd: use DRM_ERROR instead of DRM_INFO in error case Date: Mon, 15 Apr 2019 09:47:19 +0900 Message-Id: <1555289240-7735-2-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555289240-7735-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFKsWRmVeSWpSXmKPExsWy7bCmgW7Tlc0xBnMmWFtc+fqezWLS/Qks FjPO72NyYPa4332cyaNvyypGj8+b5AKYo7JtMlITU1KLFFLzkvNTMvPSbZW8g+Od403NDAx1 DS0tzJUU8hJzU22VXHwCdN0yc4AWKSmUJeaUAoUCEouLlfTtbIryS0tSFTLyi0tslVILUnIK LAv0ihNzi0vz0vWS83OtDA0MjEyBChOyM6af1Sq4xl1xYKd+A+Mlzi5GTg4JAROJb5duMILY QgI7GCWOvTToYuQCsj8xSjx+3s0E4XxjlFi59g4LTMephvvMEIm9jBLnGg5DVX1hlLj05wA7 SBWbgKrExBX32UBsEQFlib8TV4HtYBZwk1h8ejnYJGGBAImvdyewdjFycLAA1T+9VgES5hVw lthz8zEjxDI5iZvnOplBbE4BF4k9W5+A7ZIQeMsq8X7VOagiF4lFZy4wQ9jCEq+Ob2GHsKUk Xva3QdnlEs/ePWMB2SUhUCPxbW4FhGkscXFFCojJLKApsX6XPsSRfBLvvvawQlTwSnS0CUHM UJI4dvEG1E4JiQtLJrJB2B4S375ugAbCdEaJ7wsusk5glJ2FMHUBI+MqRrHUguLc9NRiwwJT 5Aja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ailID: 20190415004658epcas1p4203cd2876c49e7157fdab6b17293976e X-Msg-Generator: CA CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20190415004658epcas1p4203cd2876c49e7157fdab6b17293976e References: <1555289240-7735-1-git-send-email-inki.dae@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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; }