Re: [PATCH v2 3/7] serial: 8250: Add serial8250_handle_irq_locked()
From: Andy Shevchenko
Date: Wed Jan 28 2026 - 08:21:47 EST
On Wed, Jan 28, 2026 at 12:52:57PM +0200, Ilpo Järvinen wrote:
> 8250_port exports serial8250_handle_irq() to HW specific 8250 drivers.
> It takes port's lock within but a HW specific 8250 driver may want to
> take port's lock itself, do something, and then call the generic
> handler in 8250_port but to do that, the caller has to release port's
> lock for no good reason.
>
> Introduce serial8250_handle_irq_locked() which a HW specific driver can
> call while already holding port's lock.
>
> As this is new export, put it straight into a namespace (where all 8250
> exports should eventually be moved).
Reviewed-by: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
...
> +void serial8250_handle_irq_locked(struct uart_port *port, unsigned int iir);
> int serial8250_handle_irq(struct uart_port *port, unsigned int iir);
Looking at these I think at some point we can move to 'u32 iir'.
> u16 serial8250_rx_chars(struct uart_8250_port *up, u16 lsr);
> void serial8250_read_char(struct uart_8250_port *up, u16 lsr);
--
With Best Regards,
Andy Shevchenko