summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTony Cheng <Tony.Cheng@amd.com>2026-09-05 09:54:51 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-09-23 13:18:52 -0400
commit6657d6bbbbf32a46bd3c442931452a7d1d22d326 (patch)
treebd6ff6ec0f780ba0163fe91e343e7a6ce4c0c438 /drivers
parent8fe96f0083a95ccd3d564b3b8e31ad0c4fcc6b4d (diff)
downloadlinux-next-6657d6bbbbf32a46bd3c442931452a7d1d22d326.tar.gz
linux-next-6657d6bbbbf32a46bd3c442931452a7d1d22d326.zip
drm/amd/display: Add inst field to struct dmub_psr
Add an inst member to struct dmub_psr and set it to 0 in dmub_psr_construct(), since the PSR object is a pool singleton. No functional change; the field has no readers yet. Reviewed-by: Jun Lei <jun.lei@amd.com> Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Tony Cheng <Tony.Cheng@amd.com> Signed-off-by: George Zhang <george.zhang@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c1
-rw-r--r--drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
index 45630c3effe1..66d8ba73d38b 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
+++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.c
@@ -481,6 +481,7 @@ static void dmub_psr_construct(struct dmub_psr *psr, struct dc_context *ctx)
{
psr->ctx = ctx;
psr->funcs = &psr_funcs;
+ psr->inst = 0;
}
/*
diff --git a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h
index a6e282d950c3..45ba9902ebbb 100644
--- a/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h
+++ b/drivers/gpu/drm/amd/display/dc/dce/dmub_psr.h
@@ -34,6 +34,7 @@ struct dmub_psr_funcs;
struct dmub_psr {
struct dc_context *ctx;
const struct dmub_psr_funcs *funcs;
+ uint32_t inst;
};
struct dmub_psr_funcs {