]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add trigger connector unplug
authorEryk Brol <eryk.brol@amd.com>
Thu, 27 Aug 2020 19:45:06 +0000 (15:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 21:52:41 +0000 (17:52 -0400)
commit4bc3536b7fd60ba706af492f07e88b0214a1dd0d
tree411f0174e023691edd1bed61ecb2f2d8e06b0ac1
parent37ddfcd2db6a8e3e3fe6091c522e87c74a267df6
drm/amd/display: Add trigger connector unplug

[why]
We need a virtual tool that would emulate a physical
connector unplug to usermode, while connector is
still physically plugged in.

[how]
Added a new option to debugfs entry "trigger_hotplug".
It emulates hotplug irq handling scenario by clearing
DC and DM connector states.
It can be triggered with the following command:

echo 0 > /sys/kernel/debug/dri/0/DP-X/trigger_hotplug

Signed-off-by: Eryk Brol <eryk.brol@amd.com>
Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c