]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / video: update condition to check if device is in _DOD list
authorAaron Lu <aaron.lu@intel.com>
Mon, 1 Dec 2014 01:09:18 +0000 (02:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Dec 2014 01:09:18 +0000 (02:09 +0100)
commit16632532ac6df8c2fbc799024e69d2d720ce574c
treec5879b6f7b6ec184c32a71c82a7eb2003af3be2a
parent40407ab9c7030192d9d5dc25ea3e5e4b3b1010ec
ACPI / video: update condition to check if device is in _DOD list

Commit 8ee41d7fe4c8 ("ACPI / video: check _DOD list when creating
backlight devices") checks if the video device is in the bind devices
list to decide if we should create backlight device for it, that causes
problem for one Dell Latitude E6410, where none of the video output
devices are properly bound due to the way how we did the comparing
between its _ADR and the _DOD's values. Solve this problem by comparing
the lower 12 bits of both the device's _ADR and the _DOD's values instead
of relying on bind result.

Fixes: 8ee41d7fe4c8 ("ACPI / video: check _DOD list when creating backlight devices")
Reported-and-tested-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/video.c