diff options
| author | Ovidiu Panait <ovidiu.panait.oss@gmail.com> | 2025-09-19 22:53:56 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-10-13 09:09:28 +0200 |
| commit | 60d042a787e069af82733ed211aceebcfb93a167 (patch) | |
| tree | 3eeaf70548f2e279dfd48b7f8455492b3d5edfd0 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | 1937e38905f944cd658b84d6f0aa7c5a4d880c9d (diff) | |
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>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
