Linux Serial subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] serial: owl, uartlite: undo clock setup on probe failure
@ 2026-12-01 19:17 Arina Kharlamova via B4 Relay
  2026-12-01 19:17 ` [PATCH 1/2] serial: owl: Disable the clock when uart_add_one_port() fails Arina Kharlamova via B4 Relay
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arina Kharlamova via B4 Relay @ 2026-12-01 19:17 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Andreas Färber,
	Manivannan Sadhasivam, Amit Singh Tomar, Peter Korsgaard,
	Shubhrajyoti Datta
  Cc: linux-kernel, linux-serial, linux-arm-kernel, linux-actions,
	kernel test robot, Dan Carpenter, Arina Kharlamova

Two serial drivers leave the port clock enabled when probe fails
after enabling it. uartlite also leaves runtime PM enabled.

I found these with spec2patch. I model-checked the probe and remove
paths of each driver with CBMC against formal specifications of the
kernel APIs they call. The specifications are checked against the kernel
source, and some of them are proved in Rocq against a transcription of
the kernel code. I also checked lock usage separately. With the help of
an AI coding assistant (Claude); I reviewed the analysis and the fix.
Compile-tested only, not tested on hardware.

---
Arina Kharlamova (2):
      serial: owl: Disable the clock when uart_add_one_port() fails
      serial: uartlite: Undo clock and runtime PM setup on probe failure

 drivers/tty/serial/owl-uart.c | 4 +++-
 drivers/tty/serial/uartlite.c | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
---
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
change-id: 20261201-s2p-tty1-ee20b0ff657a

Best regards,
--  
Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>



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

end of thread, other threads:[~2026-12-01 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:17 [PATCH 0/2] serial: owl, uartlite: undo clock setup on probe failure Arina Kharlamova via B4 Relay
2026-12-01 19:17 ` [PATCH 1/2] serial: owl: Disable the clock when uart_add_one_port() fails Arina Kharlamova via B4 Relay
2026-12-01 19:17 ` [PATCH 2/2] serial: uartlite: Undo clock and runtime PM setup on probe failure Arina Kharlamova via B4 Relay
2026-12-01 19:23   ` sashiko-bot
2026-12-01 19:23 ` [PATCH 0/2] serial: owl, uartlite: undo clock " sashiko-bot

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