]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/tidss: Fix race condition while handling interrupt registers
authorDevarsh Thakkar <devarsht@ti.com>
Mon, 21 Oct 2024 14:07:50 +0000 (17:07 +0300)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 25 Nov 2024 11:10:22 +0000 (13:10 +0200)
commita9a73f2661e6f625d306c9b0ef082e4593f45a21
treedd433f8658dba443fd84dad0662ab0700e5a0109
parent361a2ebb5cad211732ec3c5d962de49b21895590
drm/tidss: Fix race condition while handling interrupt registers

The driver has a spinlock for protecting the irq_masks field and irq
enable registers. However, the driver misses protecting the irq status
registers which can lead to races.

Take the spinlock when accessing irqstatus too.

Fixes: 32a1795f57ee ("drm/tidss: New driver for TI Keystone platform Display SubSystem")
Cc: stable@vger.kernel.org
Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
[Tomi: updated the desc]
Reviewed-by: Jonathan Cormier <jcormier@criticallink.com>
Tested-by: Jonathan Cormier <jcormier@criticallink.com>
Reviewed-by: Aradhya Bhatia <aradhya.bhatia@linux.dev>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241021-tidss-irq-fix-v1-6-82ddaec94e4a@ideasonboard.com
drivers/gpu/drm/tidss/tidss_dispc.c
drivers/gpu/drm/tidss/tidss_irq.c