]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: axis-fifo: simplify interrupt handling
authorOvidiu Panait <ovidiu.panait.oss@gmail.com>
Fri, 19 Sep 2025 19:53:56 +0000 (22:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 07:09:28 +0000 (09:09 +0200)
commit60d042a787e069af82733ed211aceebcfb93a167
tree3eeaf70548f2e279dfd48b7f8455492b3d5edfd0
parent1937e38905f944cd658b84d6f0aa7c5a4d880c9d
staging: axis-fifo: simplify interrupt handling

The irq handler iterates through the interrupt bits one by one in a while()
loop, clearing one bit at a time. This is unnecessary and inefficient, as
the 'Interrupt Status Register' can be cleared with a single write
operation.

Also the irq handler checks for some interrupts that are masked out in the
'Interrupt Enable Register', so they are never triggered.

Simplify the irq handler by removing the checks for interrupts that are
masked out and clear the whole 'Interrupt Status Register' in one go. The
macros that are no longer relevant are also removed.

Signed-off-by: Ovidiu Panait <ovidiu.panait.oss@gmail.com>
Link: https://lore.kernel.org/r/20250919195400.3180039-2-ovidiu.panait.oss@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/axis-fifo/axis-fifo.c