Skip to content

Commit

Permalink
drm/radeon: block the keypress on ATIF events
Browse files Browse the repository at this point in the history
The AMD ACPI interface may use ACPI_VIDEO_NOTIFY_PROBE to signal SBIOS
requests; block the keypress in this case since the user did not
actually press the mode switch key.

Signed-off-by: Luca Tettamanti <kronos.it@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Luca Tettamanti authored and Alex Deucher committed Sep 20, 2012
1 parent 8a37c65 commit 92fdf89
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/gpu/drm/radeon/radeon_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,12 @@ int radeon_atif_handler(struct radeon_device *rdev,
}
/* TODO: check other events */

return NOTIFY_OK;
/* We've handled the event, stop the notifier chain. The ACPI interface
* overloads ACPI_VIDEO_NOTIFY_PROBE, we don't want to send that to
* userspace if the event was generated only to signal a SBIOS
* request.
*/
return NOTIFY_BAD;
}

static int radeon_acpi_event(struct notifier_block *nb,
Expand Down

0 comments on commit 92fdf89

Please sign in to comment.