From patchwork Sat Sep 29 05:29:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 1527971 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 2D5763FE80 for ; Sat, 29 Sep 2012 05:29:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752644Ab2I2F3V (ORCPT ); Sat, 29 Sep 2012 01:29:21 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:37600 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751556Ab2I2F3R (ORCPT ); Sat, 29 Sep 2012 01:29:17 -0400 Received: by pbbrr4 with SMTP id rr4so5952386pbb.19 for ; Fri, 28 Sep 2012 22:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=qCINnFao9B6+uSqF1KzsXswpq++5f2iskagScZrI14k=; b=OReqsvhSZEzcLFq2o85Upfalj6GEvQQps0tKSvegGyW3im/BsDft+h/D8qWUvvzK3E PhlfF/k9A0Rte8Z6UL4TKAUERtn15Xb5sQMTahE1iYPgmsH687w4dkmoev9LR9uzPEvp ks+uoWQiLlik+Lcs7nnXr8wZkuLpiVM3vaU3l2iwkaxX9kOEx+GgLe6xG1QktYjVbzeh V9w/J8a3YpyOs32QIZSxlvqK8tJOYttTLPf82zkIxLpFWV7bsJr60Yb4+0jykLVA9zWF IAHOE7jOvXTL40gTOm5WjkAW6U+ZXsGmO8KOiQ50cmgVAYTdVxAZM35MaKYAUYzZsHqc rmFQ== MIME-Version: 1.0 Received: by 10.68.190.233 with SMTP id gt9mr25440608pbc.137.1348896557277; Fri, 28 Sep 2012 22:29:17 -0700 (PDT) Received: by 10.66.87.162 with HTTP; Fri, 28 Sep 2012 22:29:17 -0700 (PDT) Date: Sat, 29 Sep 2012 13:29:17 +0800 Message-ID: Subject: [PATCH] fb: only enable console lock in fb for VGA console From: Jun Nie To: "linux-fbdev@vger.kernel.org" , FlorianSchandinat@gmx.de, "laurent.pinchart@ideasonboard.com" , Eric Miao , Haojian Zhuang , Benjamin Herrenschmidt , "David S. Miller" , Torben Hohn , Paul Mundt , Liu Ying , Jiri Slaby , njun@marvell.com Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org If VGA console is not enable, we do not have to involve console lock/unlock in FB framework to avoid hold the lock unnecessarily. Otherwise, UART console output may be blocked by FB pan_display etc operations, which hold the console lock. This may block the panic log out on UART, where the lock may never be released by FB. Signed-off-by: Jun Nie --- drivers/video/arkfb.c | 11 +++++------ drivers/video/aty/aty128fb.c | 11 +++++------ drivers/video/aty/atyfb_base.c | 11 +++++------ drivers/video/aty/radeon_pm.c | 9 ++++----- drivers/video/chipsfb.c | 8 ++++---- drivers/video/da8xx-fb.c | 9 ++++----- drivers/video/fb-puv3.c | 9 ++++----- drivers/video/fbmem.c | 28 ++++++++++++++++++++++------ drivers/video/fbsysfs.c | 21 ++++++++++----------- drivers/video/geode/gxfb_core.c | 9 ++++----- drivers/video/geode/lxfb_core.c | 8 ++++---- drivers/video/i740fb.c | 11 +++++------ drivers/video/i810/i810_main.c | 9 ++++----- drivers/video/jz4740_fb.c | 9 ++++----- drivers/video/mx3fb.c | 9 ++++----- drivers/video/nvidia/nvidia.c | 9 ++++----- drivers/video/ps3fb.c | 15 +++++++-------- drivers/video/pxafb.c | 5 ++--- drivers/video/s3fb.c | 15 +++++++-------- drivers/video/savage/savagefb_driver.c | 9 ++++----- drivers/video/sh_mobile_lcdcfb.c | 13 ++++++------- drivers/video/sm501fb.c | 9 ++++----- drivers/video/tmiofb.c | 11 +++++------ drivers/video/via/viafbdev.c | 8 ++++---- drivers/video/vt8623fb.c | 11 +++++------ drivers/video/xen-fbfront.c | 5 ++--- include/linux/fb.h | 2 ++ 27 files changed, 140 insertions(+), 144 deletions(-) extern int num_registered_fb; diff --git a/drivers/video/arkfb.c b/drivers/video/arkfb.c index 555dd4c..774d902 100644 --- a/drivers/video/arkfb.c +++ b/drivers/video/arkfb.c @@ -23,7 +23,6 @@ #include #include #include -#include /* Why should fb driver call console functions? because console_lock() */ #include