drm/amdgpu/display: fix warning about indentation
Subsystems (3)
Alex Deucher
maintainerPATCH 1/2 drm/amdgpu/display: fix warning about indentation
Looks like this code block was missing parens.
Fixes c0ffd1945147 ("drm/amd/display: Add DPCD writes at key points")
Cc Leo (Hanghong) Ma <[email protected]>
Cc Mikita Lipski <[email protected]>
Cc Aric Cyr <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +2 -3
@@ -2370,12 +2370,11 @@ bool perform_link_training_with_retries(/* We need to do this before the link training to ensure the idle pattern in SST * mode will be sent right after the link training */ -#if defined(CONFIG_DRM_AMD_DC_DCN ) - if (dp_get_link_encoding_format(¤t_setting) == DP_8b_10b_ENCODING) -#endif +if (dp_get_link_encoding_format (¤t_setting) == DP_8b_10b_ENCODING) { link_enc->funcs->connect_dig_be_to_fe (link_enc, pipe_ctx->stream_res.stream_enc->id, true);dp_source_sequence_trace (link,DPCD_SOURCE_SEQ_AFTER_CONNECT_DIG_FE_BE ); + }for (j =0 ; j < attempts; ++j) {
Signature · 1 line
2.31.1
Alex Deucher
maintainerPATCH 2/2 drm/amdgpu/display: add a proper license to dc_link_dp.c
Was missing.
Signed-off-by Alex Deucher <[email protected]>
--- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +23 -1
@@ -1,4 +1,26 @@ -/* Copyright 2015 Advanced Micro Devices, Inc. */ +/* +* Copyright 2015 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +*/ #include "dm_services.h" #include "dc.h" #include "dc_link_dp.h"
Signature · 1 line
2.31.1
Re: [PATCH 2/2] drm/amdgpu/display: add a proper license to dc_link_dp.c
Quoted 3 lines · Alex Deucher
Was missing.
Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 37 lines
--- .../gpu/drm/amd/display/dc/core/dc_link_dp.c | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +23
-1@@ -1,4 +1,26 @@ -/* Copyright 2015 Advanced Micro Devices, Inc. */ +/* +* Copyright 2015 Advanced Micro Devices, Inc. +* +* Permission is hereby granted, free of charge, to any person obtaining a +* copy of this software and associated documentation files (the "Software"), +* to deal in the Software without restriction, including without limitation +* the rights to use, copy, modify, merge, publish, distribute, sublicense, +* and/or sell copies of the Software, and to permit persons to whom the +* Software is furnished to do so, subject to the following conditions: +* +* The above copyright notice and this permission notice shall be included in +* all copies or substantial portions of the Software. +* +* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR +* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +* OTHER DEALINGS IN THE SOFTWARE. +* +* Authors: AMD +*/ #include "dm_services.h" #include "dc.h" #include "dc_link_dp.h"
Quoted 7 lines · Alex Deucher
Looks like this code block was missing parens.
Fixes c0ffd1945147 ("drm/amd/display: Add DPCD writes at key points")Cc Leo (Hanghong) Ma <[email protected]>Cc Mikita Lipski <[email protected]>Cc Aric Cyr <[email protected]>Signed-off-by Alex Deucher <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 24 lines
--- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +2
-3@@ -2370,12 +2370,11 @@ bool perform_link_training_with_retries(/* We need to do this before the link training to ensure the idle pattern in SST * mode will be sent right after the link training */ -#if defined(CONFIG_DRM_AMD_DC_DCN ) - if (dp_get_link_encoding_format(¤t_setting) == DP_8b_10b_ENCODING) -#endif +if (dp_get_link_encoding_format (¤t_setting) == DP_8b_10b_ENCODING) { link_enc->funcs->connect_dig_be_to_fe (link_enc, pipe_ctx->stream_res.stream_enc->id, true);dp_source_sequence_trace (link,DPCD_SOURCE_SEQ_AFTER_CONNECT_DIG_FE_BE ); + }for (j =0 ; j < attempts; ++j) {