OSDN Git Service

drm/msm: Fix duplicate gpu node in icc summary
authorAkhil P Oommen <akhilpo@codeaurora.org>
Wed, 28 Oct 2020 14:35:11 +0000 (20:05 +0530)
committerRob Clark <robdclark@chromium.org>
Wed, 4 Nov 2020 16:26:26 +0000 (08:26 -0800)
commit5785dd7a8ef0de8049f40a1a109de6a1bf17b479
tree5301db48816dcb8cd99d2a11a9d3a39349de33f5
parentcccdeda362fafd0613b571affe7199eb7d8f3fba
drm/msm: Fix duplicate gpu node in icc summary

The dev_pm_opp_of_add_table() api initializes the icc nodes for gpu
indirectly. So we can avoid using of_icc_get() api in the common
probe path. To improve this, move of_icc_get() to target specific code
where it is required.

This patch helps to fix duplicate gpu node listed in the interconnect
summary from the debugfs.

Signed-off-by: Akhil P Oommen <akhilpo@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a3xx_gpu.c
drivers/gpu/drm/msm/adreno/a4xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c