drm/tidss: Remove extra K2G check
authorTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 21 Oct 2024 14:07:47 +0000 (17:07 +0300)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Mon, 25 Nov 2024 11:10:21 +0000 (13:10 +0200)
We check if the platform is K2G in dispc_k3_clear_irqstatus(), and
return early if so. This cannot happen, as the _k3_ functions are never
called on K2G in the first place. So remove the check.

Reviewed-by: Devarsh Thakkar <devarsht@ti.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-3-82ddaec94e4a@ideasonboard.com
drivers/gpu/drm/tidss/tidss_dispc.c

index f8111106757868b31fd9652954631d584eb9459d..99a1138f3e69ddd01de7ac2208e32c2559148625 100644 (file)
@@ -789,8 +789,6 @@ void dispc_k3_clear_irqstatus(struct dispc_device *dispc, dispc_irq_t clearmask)
                if (clearmask & DSS_IRQ_PLANE_MASK(i))
                        dispc_k3_vid_write_irqstatus(dispc, i, clearmask);
        }
-       if (dispc->feat->subrev == DISPC_K2G)
-               return;
 
        /* always clear the top level irqstatus */
        dispc_write(dispc, DISPC_IRQSTATUS, dispc_read(dispc, DISPC_IRQSTATUS));