diff options
author | Aurabindo Pillai <[email protected]> | 2023-08-18 13:36:06 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2023-09-11 17:13:35 -0400 |
commit | e9981e8e751330cb5aa43d06f2aec080807717e8 (patch) | |
tree | 09e96845cc71bd8ae420c141ff707b0904405cd5 | |
parent | 601c63ad8e551b2282e94f0a81779e9ae5c8100e (diff) |
drm/amd/display: set default return value for ODM Combine debugfs
[Why&How]
Set a default return value of -ENOTSUPP to indicate that the hardware
does not support querying ODM Combine mode.
Reviewed-by: Rodrigo Siqueira <[email protected]>
Acked-by: Stylon Wang <[email protected]>
Signed-off-by: Aurabindo Pillai <[email protected]>
Tested-by: Daniel Wheeler <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r-- | drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c index 17d1990ea832..05c1ad98a1f6 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c @@ -1211,7 +1211,7 @@ static int odm_combine_segments_show(struct seq_file *m, void *unused) struct amdgpu_dm_connector *aconnector = to_amdgpu_dm_connector(connector); struct dc_link *link = aconnector->dc_link; struct pipe_ctx *pipe_ctx = NULL; - int i, segments = 0; + int i, segments = -EOPNOTSUPP; for (i = 0; i < MAX_PIPES; i++) { pipe_ctx = &link->dc->current_state->res_ctx.pipe_ctx[i]; |