linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 1/5] Revert "serial: sunhv: Initialize lock for non-registered console"
@ 2020-07-11 13:53 Andy Shevchenko
  2020-07-11 13:53 ` [PATCH v1 2/5] Revert "serial: amba-pl011: Make sure we initialize the port.lock spinlock" Andy Shevchenko
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andy Shevchenko @ 2020-07-11 13:53 UTC (permalink / raw)
  To: Greg Kroah-Hartman, linux-serial; +Cc: Andy Shevchenko

This reverts commit 0f87aa66e8c314f95c00eeff978c8a0b41e05d50.

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: 0f87aa66e8c3 ("serial: sunhv: Initialize lock for non-registered 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>
---
 drivers/tty/serial/sunhv.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/tty/serial/sunhv.c b/drivers/tty/serial/sunhv.c
index e35073e93a5b..eafada8fb6fa 100644
--- a/drivers/tty/serial/sunhv.c
+++ b/drivers/tty/serial/sunhv.c
@@ -567,9 +567,6 @@ static int hv_probe(struct platform_device *op)
 	sunserial_console_match(&sunhv_console, op->dev.of_node,
 				&sunhv_reg, port->line, false);
 
-	/* We need to initialize lock even for non-registered console */
-	spin_lock_init(&port->lock);
-
 	err = uart_add_one_port(&sunhv_reg, port);
 	if (err)
 		goto out_unregister_driver;
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-11 13:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-11 13:53 [PATCH v1 1/5] Revert "serial: sunhv: Initialize lock for non-registered console" Andy Shevchenko
2020-07-11 13:53 ` [PATCH v1 2/5] Revert "serial: amba-pl011: Make sure we initialize the port.lock spinlock" Andy Shevchenko
2020-07-11 13:53 ` [PATCH v1 3/5] Revert "tty: serial: add missing spin_lock_init for SiFive serial console" Andy Shevchenko
2020-07-11 13:53 ` [PATCH v1 4/5] Revert "serial: imx: Initialize lock for non-registered console" Andy Shevchenko
2020-07-11 13:53 ` [PATCH v1 5/5] Revert "serial: sh-sci: Initialize spinlock for uart console" Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).