Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "serial: sh-sci: Initialize spinlock for uart console"

This reverts commit f38278e9b810b06aff2981d505267be984423ba3.

There has been a quick fix against uninitialised lock revealed by
the commit f743061a85f5 ("serial: core: Initialise spin lock before use
in uart_configure_port()"). Since we have now better fix in serial core,
this may be safely reverted.

Fixes: f38278e9b810 ("serial: sh-sci: Initialize spinlock for uart console")
Depends-on: f743061a85f5 ("serial: core: Initialise spin lock before use in uart_configure_port()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200711135346.71171-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
71614e1c dfe51d97

-3
-3
drivers/tty/serial/sh-sci.c
··· 3301 3301 sciport->port.flags |= UPF_HARD_FLOW; 3302 3302 } 3303 3303 3304 - if (sci_uart_driver.cons->index == sciport->port.line) 3305 - spin_lock_init(&sciport->port.lock); 3306 - 3307 3304 ret = uart_add_one_port(&sci_uart_driver, &sciport->port); 3308 3305 if (ret) { 3309 3306 sci_cleanup_single(sciport);