• Michael Ellerman's avatar
    [POWERPC] Always add preferred consoles in platforms/pseries/lpar.c · 5faae2e5
    Michael Ellerman authored
    There is logic in platforms/peries/lpars.c which checks if the user has
    specified a console on the command line, and refrains from adding a
    preferred console entry for the hvc/hvsi console if they have.
    
    This trips up if you use "netconsole=foo" on the command line, and has
    the result that you get _only_ the netconsole, because the hvc device is
    never added as a preferred console. Worse still if you get the netconsole
    configuration wrong somehow, you end up with no console at all.
    
    As it turns out we don't need to worry about checking the command line.
    If the user has specified "console=foo", then foo will be set as the
    preferred console when the command line is parsed in start_kernel(), much
    later than the pseries code, and so the latter setting will take effect.
    Signed-off-by: default avatarMichael Ellerman <michael@ellerman.id.au>
    Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
    5faae2e5
lpar.c 15.3 KB