]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Suppress keypresses from ACPI_VIDEO events
authorLyude Paul <lyude@redhat.com>
Sat, 22 Sep 2018 00:43:44 +0000 (20:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Oct 2018 19:49:41 +0000 (14:49 -0500)
commit6c7c5e8902faac0ad1f7d7753850730315a2571c
treeb55f75438988991b90c082d298f2f22334db6e20
parentdc0968b285d803cf9baed4a30c09166188050028
drm/amdgpu: Suppress keypresses from ACPI_VIDEO events

Currently we return NOTIFY_DONE for any event which we don't think is
ours. However, many laptops will send more then just an ATIF event and
will also send an ACPI_VIDEO_NOTIFY_PROBE event as well. Since we don't
check for this, we return NOTIFY_DONE which causes a keypress for the
ACPI event to be propogated to userspace. This is the equivalent of
someone pressing the display key on a laptop every time there's a
hotplug event.

So, check for ACPI_VIDEO_NOTIFY_PROBE events and suppress keypresses
from them.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c