mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ACPI: Populate DIDL before registering ACPI video device on Intel
Intel graphics hardware that implements the ACPI IGD OpRegion spec requires that the list of display devices be populated before any ACPI video methods are called. Detect when this is the case and defer registration until the opregion code calls it. Fixes crashes on HP laptops. http://bugzilla.kernel.org/show_bug.cgi?id=11259 Signed-off-by: Matthew Garrett <[email protected]> Acked-by: Eric Anholt <[email protected]> Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
c60d638e29
commit
74a365b3f3
6 changed files with 119 additions and 6 deletions
11
include/acpi/video.h
Normal file
11
include/acpi/video.h
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
#ifndef __ACPI_VIDEO_H
|
||||
#define __ACPI_VIDEO_H
|
||||
|
||||
#if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)
|
||||
extern int acpi_video_register(void);
|
||||
#else
|
||||
static inline int acpi_video_register(void) { return 0; }
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Loading…
Reference in a new issue