mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen/uart: report an error if the device type is not supported
When using key pairs for the uart configuration (com1 and com2 command line
options), report an error if the passed device=<type> is not recognized
instead of silently ignoring it.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
master commit: 550ee7c198
master date: 2026-03-27 14:52:40 +0100
This commit is contained in:
1 parent
36366ff7d3
commit
ce40b0be7a
1 file changed
+2
@@ -1656,6 +1656,8 @@ static bool __init parse_namevalue_pairs(char *str, struct ns16550 *uart)
|
||||
pci_uart_config(uart, 0, uart - ns16550_com);
|
||||
dev_set = true;
|
||||
}
|
||||
else
|
||||
PARSE_ERR_RET("Unknown device type %s\n", param_value);
|
||||
break;
|
||||
|
||||
case port_bdf:
|
||||
|
||||