drm/msm/dpu: Refactor printing of main blocks in device core dump
authorRyan McCann <quic_rmccann@quicinc.com>
Sat, 8 Jul 2023 01:24:44 +0000 (18:24 -0700)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 27 Jul 2023 11:59:15 +0000 (14:59 +0300)
commitec059976c193b6cd6d7eab88a7b692c4268aeb17
tree2e315c2559baff3b38a1a47f99c9a47ea742525c
parent274909a85ebedb3d0da33cb0b21d98dc82a5f111
drm/msm/dpu: Refactor printing of main blocks in device core dump

Currently, the names of main blocks are hardcoded into the
msm_disp_snapshot_add_block function rather than using the name that
already exists in the catalog. Change this to take the name directly from
the catalog instead of hardcoding it.

Signed-off-by: Ryan McCann <quic_rmccann@quicinc.com>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/546194/
Link: https://lore.kernel.org/r/20230622-devcoredump_patch-v5-5-67e8b66c4723@quicinc.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c