]> git.baikalelectronics.ru Git - kernel.git/commit
msm: disp: dpu1: add support to access hw irqs regs depending on revision
authorShubhashree Dhar <dhar@codeaurora.org>
Wed, 20 Nov 2019 11:32:31 +0000 (17:02 +0530)
committerRob Clark <robdclark@chromium.org>
Thu, 2 Jan 2020 23:08:23 +0000 (15:08 -0800)
commit26d07493183ebc7a8578e7ee9c44e44f5bf93bf6
tree82b4b4d420abd788c6d9cc4f2194bdfe5f8071f0
parentf78fb87d7686bf94dd3a2140ba757688489a44cd
msm: disp: dpu1: add support to access hw irqs regs depending on revision

Current code assumes that all the irqs registers offsets can be
accessed in all the hw revisions; this is not the case for some
targets that should not access some of the irq registers.
This change adds the support to selectively remove the irqs that
are not supported in some of the hw revisions.

Changes in v1:
 - Add support to selectively remove the hw irqs that are not
   not supported.

Changes in v2:
 - Remove unrelated changes.

Changes in v3:
 - Remove change-id (Stephen Boyd).
 - Add colon in variable description to match kernel-doc (Stephen Boyd).
 - Change macro-y way of variable description (Jordon Crouse).
 - Remove unnecessary if checks (Jordon Crouse).
 - Remove extra blank line (Jordon Crouse).

Changes in v4:
 - Remove checkpatch errors.

Signed-off-by: Shubhashree Dhar <dhar@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.h