[PATCH v2] console: use first console if stdout-path device doesn't appear

Larry Finger Larry.Finger at lwfinger.net
Tue Nov 1 06:21:30 AEDT 2016


On 10/31/2016 10:50 AM, Paul Burton wrote:
> On Monday, 31 October 2016 12:14:55 GMT 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.
>>
>> Tested in QEMU with a PowerPC pseries_defconfig kernel.
>
> Actually whilst this fixes the output in QEMU it has other problems. I'm still
> digging...

As expected, it does n ot work with 4.9-rc3 on the real PowerPC.

Larry




More information about the Linuxppc-dev mailing list