Re: [PATCH v2 3/7] serial: 8250: Add serial8250_handle_irq_locked()

From: Ilpo Järvinen

Date: Wed Jan 28 2026 - 08:27:13 EST


On Wed, 28 Jan 2026, Andy Shevchenko wrote:

> 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'.

Yes (though for common 8250 code even u8 would probably suffice).

--
i.