We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2721fc7 commit 543a5afCopy full SHA for 543a5af
drivers/tty/serial/8250/8250_core.c
@@ -717,6 +717,7 @@ int serial8250_register_8250_port(const struct uart_8250_port *up)
717
nr_uarts++;
718
}
719
720
+ /* Check if it is CIR already. We check this below again, see there why. */
721
if (uart->port.type == PORT_8250_CIR) {
722
ret = -ENODEV;
723
goto unlock;
@@ -815,6 +816,7 @@ int serial8250_register_8250_port(const struct uart_8250_port *up)
815
816
if (up->dl_write)
817
uart->dl_write = up->dl_write;
818
819
+ /* Check the type (again)! It might have changed by the port.type assignment above. */
820
if (uart->port.type != PORT_8250_CIR) {
821
if (uart_console_registered(&uart->port))
822
pm_runtime_get_sync(uart->port.dev);
0 commit comments