OSDN Git Service

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)
commit0846cca39484f6a9204edfca0987ae2725a88da7
tree82b4b4d420abd788c6d9cc4f2194bdfe5f8071f0
parentcb929b8f5faa2a94c2f28e656e243e3ec173b480
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