drm/msm/dpu: autodetect supported interrupts
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 27 Jul 2023 14:45:41 +0000 (17:45 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 2 Aug 2023 09:36:33 +0000 (12:36 +0300)
commitbf8198cc3b904fb6c3fba90cefc8e8c539d263b0
treed62345ab9970b9b3c7aa3c7d582a4dcf70d62a0a
parent370891f0d983e6166db81c7fa2cc083c4f072052
drm/msm/dpu: autodetect supported interrupts

Declaring the mask of supported interrupts proved to be error-prone. It
is very easy to add a bit with no corresponding backing block or to miss
the INTF TE bit. Replace this with looping over the enabled INTF blocks
to setup the irq mask.

Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/549654/
Link: https://lore.kernel.org/r/20230727144543.1483630-4-dmitry.baryshkov@linaro.org
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h