media: rcar-vin: Fold interrupt helpers into only callers
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 16 Jun 2025 18:57:20 +0000 (20:57 +0200)
committerHans Verkuil <hverkuil@xs4all.nl>
Wed, 18 Jun 2025 07:20:44 +0000 (09:20 +0200)
commit8e5e3da9c63295e5a21ba70e63f17f2a790529c6
tree731b8cb820db7723a3d6acdd87e464addca840cb
parent118f2834b27ffe06a1badcd74fa35bb14cf1d339
media: rcar-vin: Fold interrupt helpers into only callers

The call sites using the interrupt helper functions have all been
reworked to only one for each. Fold each of them into the only call
sites left.

This fixes a possible interrupt loss in case an interrupt occurs between
reading VNINTS_REG in rvin_get_interrupt_status() and reading it again
in rvin_ack_interrupt().

While at it rename the variable holding the current interrupt status to
make the code easier to read.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: https://lore.kernel.org/r/20250616185722.980722-2-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/platform/renesas/rcar-vin/rcar-dma.c