]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: check link status before disable stream
authorPaul Hsieh <paul.hsieh@amd.com>
Thu, 28 Nov 2019 02:44:39 +0000 (10:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Dec 2019 21:09:09 +0000 (16:09 -0500)
commit26ba9606234aebb379f421cffba18583a06eb96d
treecb4cf0e6975ae6d89ad0e8ff95e834028e4aa62f
parent6e3acf7c8834aee88e989f5aa7d3b74ab35d8df4
drm/amd/display: check link status before disable stream

[Why]
1. Set second screen only then unplug external monitor
2. Enter to S4 then plug in external monitor
3. Resume from S4, eDP will not turn off when OS set
   second screen only
Sometimes OS will not set eDP power up cause eDP dpms_off
keep true then driver skipp disable stream

[How]
When drvier try to disable stream, add link status condition

Signed-off-by: Paul Hsieh <paul.hsieh@amd.com>
Reviewed-by: Anthony Koo <Anthony.Koo@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hwseq.c