From: Gustavo A. R. Silva Date: Thu, 29 Jun 2017 17:38:37 +0000 (-0500) Subject: drm/radeon: add header comment for clarification to vce_v2_0_enable_mgcg() X-Git-Tag: v4.14-rc1~8^2~44^2~118 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ed279877ddf7ae8e5acd9fe4d464ceba98f37cd;p=platform%2Fkernel%2Flinux-rpi3.git drm/radeon: add header comment for clarification to vce_v2_0_enable_mgcg() Add function header comment to make it clear that local variable sw_cg is used for debugging and it should not be removed. Addresses-Coverity-ID: 1198635 Cc: Alex Deucher Signed-off-by: Gustavo A. R. Silva Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/vce_v2_0.c b/drivers/gpu/drm/radeon/vce_v2_0.c index fce2144..b0a43b6 100644 --- a/drivers/gpu/drm/radeon/vce_v2_0.c +++ b/drivers/gpu/drm/radeon/vce_v2_0.c @@ -104,6 +104,10 @@ static void vce_v2_0_disable_cg(struct radeon_device *rdev) WREG32(VCE_CGTT_CLK_OVERRIDE, 7); } +/* + * Local variable sw_cg is used for debugging purposes, in case we + * ran into problems with dynamic clock gating. Don't remove it. + */ void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable) { bool sw_cg = false;