Commit 660a467a authored by Ilya Bakoulin's avatar Ilya Bakoulin Committed by Alex Deucher
Browse files

drm/amd/display: Separate set_gsl from set_gsl_source_select



[Why/How]
Separate the checks for set_gsl and set_gsl_source_select, since
source_select may not be implemented/necessary.

Reviewed-by: default avatarNevenko Stupar <nevenko.stupar@amd.com>
Signed-off-by: default avatarIlya Bakoulin <Ilya.Bakoulin@amd.com>
Signed-off-by: default avatarRay Wu <ray.wu@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 86fa0b98
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -283,12 +283,11 @@ void dcn20_setup_gsl_group_as_lock(
	}

	/* at this point we want to program whether it's to enable or disable */
	if (pipe_ctx->stream_res.tg->funcs->set_gsl != NULL &&
		pipe_ctx->stream_res.tg->funcs->set_gsl_source_select != NULL) {
	if (pipe_ctx->stream_res.tg->funcs->set_gsl != NULL) {
		pipe_ctx->stream_res.tg->funcs->set_gsl(
			pipe_ctx->stream_res.tg,
			&gsl);

		if (pipe_ctx->stream_res.tg->funcs->set_gsl_source_select != NULL)
			pipe_ctx->stream_res.tg->funcs->set_gsl_source_select(
				pipe_ctx->stream_res.tg, group_idx, enable ? 4 : 0);
	} else