From: Roman Li Date: Wed, 17 May 2017 16:07:30 +0000 (-0400) Subject: drm/amd/display: Fix 5th display lightup on Vega10 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ccaf31ec714b596d1edb92b1ed4ccc4abf1f645c;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Fix 5th display lightup on Vega10 - fixing bug in calculation of reg offset for D5VGA_CONTROL Signed-off-by: Roman Li Reviewed-by: Tony Cheng Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c index 245356e72b36..dc8eeac6ac96 100644 --- a/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c +++ b/drivers/gpu/drm/amd/display/dc/dce120/dce120_timing_generator.c @@ -410,7 +410,7 @@ void dce120_timing_generator_disable_vga(struct timing_generator *tg) break; case CONTROLLER_ID_D4: addr = mmD1VGA_CONTROL; - offset = mmD1VGA_CONTROL - mmD1VGA_CONTROL; + offset = mmD5VGA_CONTROL - mmD1VGA_CONTROL; break; case CONTROLLER_ID_D5: addr = mmD6VGA_CONTROL;