Re: [PATCH v3] serial: max310x: improve interrupt handling

From: Hugo Villeneuve
Date: Mon Sep 08 2025 - 09:55:05 EST


On Mon, 08 Sep 2025 06:53:43 +0000
Tapio Reijonen <tapio.reijonen@xxxxxxxxxxx> wrote:

> When there is a heavy load of receiving characters to all
> four UART's, the warning 'Hardware RX FIFO overrun' is
> sometimes detected.
> The current implementation always service first the highest UART
> until no more interrupt and then service another UART
> (ex: UART3 will be serviced for as long as there are interrupts
> for it, then UART2, etc).
>
> This commit handle all individual interrupt sources before
> reading the global IRQ register again.
>
> This commit has also a nice side-effect of improving the efficiency
> of the driver by reducing the number of reads of the global
> IRQ register.
>
> Signed-off-by: Tapio Reijonen <tapio.reijonen@xxxxxxxxxxx>

Reviewed-by: Hugo Villeneuve <hvilleneuve@xxxxxxxxxxxx>

--
Hugo Villeneuve