Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760530AbcKDIF5 (ORCPT ); Fri, 4 Nov 2016 04:05:57 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:46362 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760378AbcKDIFs (ORCPT ); Fri, 4 Nov 2016 04:05:48 -0400 X-Auth-Info: TwhQJk1Akxcd43eZ6J0ct+eW226kse6xswHu1SI8JUpkXuACH2Od2OKFgNQTez6i From: Andreas Schwab To: Paul Burton Cc: Larry Finger , Michael Ellerman , Sergey Senozhatsky , Andrew Morton , Borislav Petkov , Petr Mladek , Tejun Heo , , Subject: Re: [PATCH v3] console: use first console if stdout-path device doesn't appear References: <2c67e39b-fc33-918a-774e-d9238e837c03@lwfinger.net> <20161103125758.3415-1-paul.burton@imgtec.com> X-Yow: I pretend I'm living in a styrofoam packing crate, high in th' SWISS ALPS, still unable to accept th' idea of TOUCH-TONE DIALING!! Date: Fri, 04 Nov 2016 09:05:38 +0100 In-Reply-To: <20161103125758.3415-1-paul.burton@imgtec.com> (Paul Burton's message of "Thu, 3 Nov 2016 12:57:58 +0000") Message-ID: <87y40zd60d.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1149 Lines: 26 On Nov 03 2016, Paul Burton wrote: > If a device tree specified a preferred device for kernel console output > via the stdout-path or linux,stdout-path chosen node properties there's > no guarantee that it will have specified a device for which we have a > driver. It may also be the case that we do have a driver but it doesn't > call of_console_check() to register as a preferred console (eg. offb > driver as used on powermac systems). > > In these cases try to ensure that we provide some console output by > enabling the first usable registered console, which we keep track of > with the of_fallback_console variable. Affected systems will enable > their console later than they did prior to commit 05fd007e4629 > ("console: don't prefer first registered if DT specifies stdout-path") > but should otherwise produce the same output. > > Tested in QEMU with a PowerPC pseries_defconfig kernel. Unfortunately, that still doesn't work on PowerMac. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."