From patchwork Thu Mar 8 01:34:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 7153 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6362E23EA9 for ; Thu, 8 Mar 2012 01:34:54 +0000 (UTC) Received: from mail-iy0-f180.google.com (mail-iy0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 248E5A184F3 for ; Thu, 8 Mar 2012 01:34:54 +0000 (UTC) Received: by mail-iy0-f180.google.com with SMTP id e36so12685171iag.11 for ; Wed, 07 Mar 2012 17:34:53 -0800 (PST) Received: by 10.50.158.133 with SMTP id wu5mr13960054igb.50.1331170493918; Wed, 07 Mar 2012 17:34:53 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.53.18 with SMTP id k18csp157ibg; Wed, 7 Mar 2012 17:34:51 -0800 (PST) Received: by 10.52.173.230 with SMTP id bn6mr7019027vdc.19.1331170491373; Wed, 07 Mar 2012 17:34:51 -0800 (PST) Received: from e6.ny.us.ibm.com (e6.ny.us.ibm.com. [32.97.182.146]) by mx.google.com with ESMTPS id cs7si110324vdc.65.2012.03.07.17.34.51 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 07 Mar 2012 17:34:51 -0800 (PST) Received-SPF: pass (google.com: domain of jstultz@us.ibm.com designates 32.97.182.146 as permitted sender) client-ip=32.97.182.146; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jstultz@us.ibm.com designates 32.97.182.146 as permitted sender) smtp.mail=jstultz@us.ibm.com Received: from /spool/local by e6.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 7 Mar 2012 20:34:50 -0500 Received: from d01dlp01.pok.ibm.com (9.56.224.56) by e6.ny.us.ibm.com (192.168.1.106) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 7 Mar 2012 20:34:49 -0500 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id B4ED238C8059; Wed, 7 Mar 2012 20:34:48 -0500 (EST) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q281Ym2T166526; Wed, 7 Mar 2012 20:34:48 -0500 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q281YlaL016497; Wed, 7 Mar 2012 18:34:47 -0700 Received: from kernel.beaverton.ibm.com (kernel.beaverton.ibm.com [9.47.67.96]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q281YlBQ016487; Wed, 7 Mar 2012 18:34:47 -0700 Received: by kernel.beaverton.ibm.com (Postfix, from userid 1056) id 51804C040C; Wed, 7 Mar 2012 17:34:46 -0800 (PST) From: John Stultz To: lkml Cc: Dima Zavin , Greg KH , Android Kernel Team , John Stultz Subject: [PATCH 01/11] android: ram_console: set CON_ANYTIME console flag Date: Wed, 7 Mar 2012 17:34:28 -0800 Message-Id: <1331170478-30538-2-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.7.3.2.146.gca209 In-Reply-To: <1331170478-30538-1-git-send-email-john.stultz@linaro.org> References: <1331170478-30538-1-git-send-email-john.stultz@linaro.org> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12030801-1976-0000-0000-00000B456AE0 X-Gm-Message-State: ALoCoQllkKh3j496l8maUg7ST9p486hUJnfYggBeof6ODS/lomJeN2trqKS3hWHn0YvOP7gJab+b From: Dima Zavin We want to ensure that we get all the console messages, even ones that occur while the printing CPU is not yet online. [jstultz: tweaked commit subject line] CC: Greg KH CC: Android Kernel Team Signed-off-by: Dima Zavin Signed-off-by: John Stultz --- drivers/staging/android/ram_console.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/android/ram_console.c b/drivers/staging/android/ram_console.c index fabd398..f01a0c4 100644 --- a/drivers/staging/android/ram_console.c +++ b/drivers/staging/android/ram_console.c @@ -143,7 +143,7 @@ ram_console_write(struct console *console, const char *s, unsigned int count) static struct console ram_console = { .name = "ram", .write = ram_console_write, - .flags = CON_PRINTBUFFER | CON_ENABLED, + .flags = CON_PRINTBUFFER | CON_ENABLED | CON_ANYTIME, .index = -1, };