diff mbox series

drm/amd/display: Fix incorrect dsc force enable logic

Message ID 20201015194053.355335-1-eryk.brol@amd.com (mailing list archive)
State New, archived
Headers show
Series drm/amd/display: Fix incorrect dsc force enable logic | expand

Commit Message

Brol, Eryk Oct. 15, 2020, 7:40 p.m. UTC
[Why]
Missed removing a '!' which results in incorrect behavior

[How]
Remove the offending '!'

Signed-off-by: Eryk Brol <eryk.brol@amd.com>
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Harry Wentland Oct. 15, 2020, 7:51 p.m. UTC | #1
On 2020-10-15 3:40 p.m., Eryk Brol wrote:
> [Why]
> Missed removing a '!' which results in incorrect behavior
> 
> [How]
> Remove the offending '!'
> 
> Signed-off-by: Eryk Brol <eryk.brol@amd.com>

Reviewed-by: Harry Wentland <harry.wentland@amd.com>

Harry

> ---
>   drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
> index 98b4d5e2e336..fc87b9faec92 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
> @@ -644,7 +644,7 @@ static void try_disable_dsc(struct drm_atomic_state *state,
>   	for (i = 0; i < count; i++) {
>   		if (vars[i].dsc_enabled
>   				&& vars[i].bpp_x16 == params[i].bw_range.max_target_bpp_x16
> -				&& !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
> +				&& params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
>   			kbps_increase[i] = params[i].bw_range.stream_kbps - params[i].bw_range.max_kbps;
>   			tried[i] = false;
>   			remaining_to_try += 1;
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
index 98b4d5e2e336..fc87b9faec92 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c
@@ -644,7 +644,7 @@  static void try_disable_dsc(struct drm_atomic_state *state,
 	for (i = 0; i < count; i++) {
 		if (vars[i].dsc_enabled
 				&& vars[i].bpp_x16 == params[i].bw_range.max_target_bpp_x16
-				&& !params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
+				&& params[i].clock_force_enable == DSC_CLK_FORCE_DEFAULT) {
 			kbps_increase[i] = params[i].bw_range.stream_kbps - params[i].bw_range.max_kbps;
 			tried[i] = false;
 			remaining_to_try += 1;