From patchwork Thu Jun 13 19:01:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Egbert Eich X-Patchwork-Id: 2718351 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 623749F472 for ; Thu, 13 Jun 2013 19:11:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4A86D20402 for ; Thu, 13 Jun 2013 19:11:55 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 70AEB203EC for ; Thu, 13 Jun 2013 19:11:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 42A11E5DC0 for ; Thu, 13 Jun 2013 12:11:54 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by gabe.freedesktop.org (Postfix) with ESMTP id B745BE5C28 for ; Thu, 13 Jun 2013 12:11:41 -0700 (PDT) Received: from debian (p5DCF3933.dip0.t-ipconnect.de [93.207.57.51]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MPKs8-1Uimvh0MqW-004fsu; Thu, 13 Jun 2013 21:01:29 +0200 Received: from sles11.fritz.box (sles11.fritz.box [192.168.178.22]) by debian (Postfix) with ESMTP id 7F7F047EB; Thu, 13 Jun 2013 21:01:26 +0200 (CEST) From: Egbert Eich To: dri-devel@lists.freedesktop.org Subject: [PATCH] drm/edid: Don't print messages regarding stereo or csync by default Date: Thu, 13 Jun 2013 21:01:19 +0200 Message-Id: <1371150079-19385-1-git-send-email-eich@suse.com> X-Mailer: git-send-email 1.8.1.4 X-Provags-ID: V02:K0:RzbdF8jSju/45p2IiquyAaeFgz96JZJGJxuMEJTVzP7 KP1JTPFDgIMhMcjoicquDHmznjF1VaNI0wllAPyr8nMf8N1o/W v+MdVp3qoE1qIWLyczqKnrnpvaBOaJe3JDvahrI4QwAchq20fu nCExveW555ScBEBk9wxL5Cl0p/0rC5a9pAnjWwwGHLWgnJWSo7 fVf+z2QMyIhijFwdfU4dYTT0Il3ukm/aMXKd0u4dL2flox39Lw JBuXYh6b7PdXSi9i0trY5F0qlvpI/3D81dX/vzDSpOZe9EbVgp eFjIkTvXsPEE0nmqjQvtlOWQkIjR1PalJryT3hlJc2gePDQl/n QLUyNXkJ2UxSutbw97qA= Cc: Dave Airlie , Jean Delvare , Egbert Eich 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 X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 drm_mode_detailed() is called quite often, therefore when a monitor that has a detailed timing mode marked DRM_EDID_PT_STEREO or requiring composite sync, warning messages will clutter up the kernel log. Like we already do for incorrect hsync/vsync pluse widths, print these messages only when KMS debugging is enabled. Signed-off-by: Egbert Eich Reviewed-by: Adam Jackson --- drivers/gpu/drm/drm_edid.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_edid.c b/drivers/gpu/drm/drm_edid.c index e8d17ee..2dc1a60 100644 --- a/drivers/gpu/drm/drm_edid.c +++ b/drivers/gpu/drm/drm_edid.c @@ -1706,11 +1706,11 @@ static struct drm_display_mode *drm_mode_detailed(struct drm_device *dev, return NULL; if (pt->misc & DRM_EDID_PT_STEREO) { - printk(KERN_WARNING "stereo mode not supported\n"); + DRM_DEBUG_KMS("stereo mode not supported\n"); return NULL; } if (!(pt->misc & DRM_EDID_PT_SEPARATE_SYNC)) { - printk(KERN_WARNING "composite sync not supported\n"); + DRM_DEBUG_KMS("composite sync not supported\n"); } /* it is incorrect if hsync/vsync width is zero */