From patchwork Thu Jun 1 20:25:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Gerow X-Patchwork-Id: 9761083 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69DCC602BC for ; Thu, 1 Jun 2017 20:26:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E8CC28501 for ; Thu, 1 Jun 2017 20:26:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52FC628538; Thu, 1 Jun 2017 20:26:25 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID, T_TVD_MIME_EPI 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 F151F28501 for ; Thu, 1 Jun 2017 20:26:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751120AbdFAU0Y (ORCPT ); Thu, 1 Jun 2017 16:26:24 -0400 Received: from mail-oi0-f53.google.com ([209.85.218.53]:34465 "EHLO mail-oi0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751029AbdFAU0X (ORCPT ); Thu, 1 Jun 2017 16:26:23 -0400 Received: by mail-oi0-f53.google.com with SMTP id o65so43759221oif.1 for ; Thu, 01 Jun 2017 13:26:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=guUx8+oz3c5npcgwCTzFjOPA4+pkhOcofMldtiorMEQ=; b=Zb34Y5G832KmWZZgVNgfaykjJsWsjtgl1NBq7uqmQh/Z+aoNF2uxrsfgvAlcGVg7kT nnW2PU3AbIL69CJ7fmFLA6ZQdTk2Y9xJq9qy7rSPYmH+RBTeshoJGtJgJN+MarGi4vn0 Hx4wDNYRWpVYOi9Ph7Dz2XeGV24vXoB8Ov3Nrln4RatxAP5Rqr3XJO7Sb70jQ/d+k0Ad 8qIEhSw+FlIBYtk8vXaHVLIFRb0ZCDZdpoFaZjFc3LPpddtz7AtqR/ul2J9ypCA0fhce 1g3bvxxEkYqBnQKUmVW4DZTUJmik1ibbbmaRRxfg3XUInCZg7597+cG3fKlXo5eiEdVl METw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=guUx8+oz3c5npcgwCTzFjOPA4+pkhOcofMldtiorMEQ=; b=KyR8rifrjejOrth4C7lA7QZ8efK0TWQiv58KmxWdgIBmGoFZ9y9pHrdiRovFpQ4HWQ 6MN/nIm10Ds5Ta0CpRLD9CzN3YGr64CneuYGIhuauplpeFEO45tw8fIIGb37oiD4KYtR fdgqHzIhKCuaM0ZG8SDDE0tUeo0HCryMnFIJJ/Wu2/YD6fzaPKwqf3amNbz+oRynctbz 2HhLvfa1zHHFmPYMFyKQD2Vp8s+wQRwFpLwEDp9WY3VYqD5W8f3WgoK6vxJbkomBSN68 xN9OqIXf0nHQiuAEHbLV4aiY+/0J3N30wFo6SphiFTk5+zFLb+6mb7y0Vmtc188AJZ0K aP/g== X-Gm-Message-State: AKS2vOzfb7FCru0YefiB0U5NmM/3LTJ3giNpsqSOMloG3ZdrN+STTjr9 fxOdKnH1f3rYOJRzdyeqIg== X-Received: by 10.157.53.88 with SMTP id l24mr2260839ote.155.1496348782629; Thu, 01 Jun 2017 13:26:22 -0700 (PDT) Received: from google.com ([2620:0:1003:1008:6177:2828:2709:efc3]) by smtp.gmail.com with ESMTPSA id u16sm9506443oif.15.2017.06.01.13.26.21 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 01 Jun 2017 13:26:21 -0700 (PDT) Date: Thu, 1 Jun 2017 16:25:59 -0400 From: Mike Gerow To: linux-fbdev@vger.kernel.org Cc: bernie@plugable.com, b.zolnierkie@samsung.com, gerow@google.com Subject: [PATCH] video: fbdev: udlfb: drop log level for blanking Message-ID: <20170601202559.GA96809@google.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Log blanking that goes from FB_BLANK_UNBLANK to itself at debug. It turns out Xorg likes to habitually unblank when already unblanked and this can fill up logs over a long period of time. Signed-off-by: Mike Gerow --- drivers/video/fbdev/udlfb.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 6a3c353de7c3..611de916abcf 100644 --- a/drivers/video/fbdev/udlfb.c +++ b/drivers/video/fbdev/udlfb.c @@ -1105,8 +1105,17 @@ static int dlfb_ops_blank(int blank_mode, struct fb_info *info) char *bufptr; struct urb *urb; - pr_info("/dev/fb%d FB_BLANK mode %d --> %d\n", - info->node, dev->blank_mode, blank_mode); + /* + * Xorg likes to habitually unblank when already unblanked so log these + * kinds of events at debug. + */ + if (dev->blank_mode == FB_BLANK_UNBLANK && + blank_mode == FB_BLANK_UNBLANK) + pr_debug("/dev/fb%d FB_BLANK mode %d --> %d (FB_BLANK_UNBLANK --> FB_BLANK_UNBLANK)\n", + info->node, FB_BLANK_UNBLANK, FB_BLANK_UNBLANK); + else + pr_info("/dev/fb%d FB_BLANK mode %d --> %d\n", + info->node, dev->blank_mode, blank_mode); if ((dev->blank_mode == FB_BLANK_POWERDOWN) && (blank_mode != FB_BLANK_POWERDOWN)) {