summaryrefslogtreecommitdiff
path: root/rust/helpers/usb.c
diff options
context:
space:
mode:
authorTapio Reijonen <tapio.reijonen@vaisala.com>2025-09-08 06:53:43 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-09-12 16:10:16 +0200
commit8d17dc05c94ce95a9c9fc7ca5f1b92f6561a9284 (patch)
tree126cd802975afcdb0df6ad0b4cfc6ef5985cf0ee /rust/helpers/usb.c
parentfc702e7df456e219f029d0192fbc7cb357a16f4c (diff)
serial: max310x: improve interrupt handling
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@vaisala.com> Reviewed-by: Jiri Slaby <jirislaby@kernel.org> Reviewed-by: Hugo Villeneuve <hvilleneuve@dimonoff.com> Link: https://lore.kernel.org/r/20250908-master-max310x-improve-interrupt-handling-v3-1-91985e82ba39@vaisala.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/helpers/usb.c')
0 files changed, 0 insertions, 0 deletions