public inbox for linux-serial@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] serial: sifive: Convert sifive console to nbcon
@ 2025-04-05  4:38 Ryo Takakura
  2025-04-05  4:43 ` [PATCH v4 1/2] serial: sifive: lock port in startup()/shutdown() callbacks Ryo Takakura
  2025-04-05  4:47 ` [PATCH v4 2/2] serial: sifive: Switch to nbcon console Ryo Takakura
  0 siblings, 2 replies; 10+ messages in thread
From: Ryo Takakura @ 2025-04-05  4:38 UTC (permalink / raw)
  To: alex, aou, bigeasy, conor.dooley, gregkh, jirislaby, john.ogness,
	palmer, paul.walmsley, pmladek, samuel.holland, u.kleine-koenig
  Cc: linux-kernel, linux-riscv, linux-serial, Ryo Takakura

Hi!

This is v4 of series converting sifive console to nbcon.

The first patch fixes the issue which was pointed out by John [0] 
that the driver has been accessing SIFIVE_SERIAL_IE_OFFS register 
on its ->startup() and ->shutdown() without port lock synchronization 
against ->write().

The fix on the first patch still applies to the second patch which 
converts the console to nbcon as ->write_thread() holds port lock
and ->write_atomic() checks for the console ownership.

Sincerely,
Ryo Takakura

[0] https://lore.kernel.org/lkml/84sen2fo4b.fsf@jogness.linutronix.de/

---

Changes since v1:
[1] https://lore.kernel.org/lkml/20250323060603.388621-1-ryotkkr98@gmail.com/

- Thank you John for the feedback!
- Add a patch for synchronizing startup()/shutdown() vs write(). 
- Add <Reviewed-by> by John.

Changes since v2:
[2] https://lore.kernel.org/all/20250330003058.386447-1-ryotkkr98@gmail.com/ 

- Add Cc stable for the first patch.

Changes since v3:
[3] https://lore.kernel.org/all/20250330110957.392460-1-ryotkkr98@gmail.com/

- Avoid using return statement on return-void function. Thanks Sebastian 
  for pointing out!

---

Ryo Takakura (2):
  serial: sifive: lock port in startup()/shutdown() callbacks
  serial: sifive: Switch to nbcon console

 drivers/tty/serial/sifive.c | 93 +++++++++++++++++++++++++++++++------
 1 file changed, 80 insertions(+), 13 deletions(-)

-- 
2.34.1


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

end of thread, other threads:[~2025-04-25  9:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-05  4:38 [PATCH v4 0/2] serial: sifive: Convert sifive console to nbcon Ryo Takakura
2025-04-05  4:43 ` [PATCH v4 1/2] serial: sifive: lock port in startup()/shutdown() callbacks Ryo Takakura
2025-04-05  7:35   ` Greg KH
2025-04-05 11:23     ` Ryo Takakura
2025-04-22 10:20     ` Vlastimil Babka
2025-04-22 10:50       ` Greg KH
2025-04-22 13:07         ` Vlastimil Babka
2025-04-22 13:16           ` Greg KH
2025-04-25  9:02             ` Petr Mladek
2025-04-05  4:47 ` [PATCH v4 2/2] serial: sifive: Switch to nbcon console Ryo Takakura

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox