Message ID | 20231218071020.21805-3-tony@atomide.com |
---|---|
State | Superseded |
Headers | show |
Series | Add support for DEVNAME:0.0 style hardware based addressing | expand |
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -2459,6 +2459,10 @@ static int __init console_setup(char *str) if (console_opt_save(str, brl_options)) return 1; + /* Don't attempt to parse a DEVNAME:0.0 style console */ + if (strchr(str, ':')) + return 1; + /* * Decode str into name, index, options. */
Trying to parse the console for a console=DEVNAME:0.0 style console does not work as console_setup() tries to make a console index out of any digits passed in the kernel command line for console. In the DEVNAME:0.0 case, the name can contain a device IO address. Signed-off-by: Tony Lindgren <tony@atomide.com> --- kernel/printk/printk.c | 4 ++++ 1 file changed, 4 insertions(+)