diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-08-02 13:16:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-02 13:24:30 +0200 |
commit | 81f0f78965ebfe48c4997801050f64687cebea48 (patch) | |
tree | 99802b547781d2caf80832a8062a36a0420d1ed3 | |
parent | serial: 8250: Let serial core initialise spin lock (diff) | |
download | linux-81f0f78965ebfe48c4997801050f64687cebea48.tar.xz linux-81f0f78965ebfe48c4997801050f64687cebea48.zip |
Revert "serial: 8250: Let serial core initialise spin lock"
This reverts commit 679193b7baf8d88e41cbeb397ca17f797654947d.
It appears that in QEmu the lock has been initialised differently
(it wasn't obvious on real hardware during testing). Let's
revert the change until the better approach will be developed.
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200802111612.36189-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/tty/serial/8250/8250_port.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/8250_port.c index b2d18189d3d9..09475695effd 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -3194,6 +3194,7 @@ void serial8250_init_port(struct uart_8250_port *up) { struct uart_port *port = &up->port; + spin_lock_init(&port->lock); port->ops = &serial8250_pops; port->has_sysrq = IS_ENABLED(CONFIG_SERIAL_8250_CONSOLE); |