]> 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)
commit73d653564cdb042883e51b0b986254a8012378b4
treec5879b6f7b6ec184c32a71c82a7eb2003af3be2a
parentba45561728c20faf2120fe597ce796d19e8b6a88
ACPI / video: update condition to check if device is in _DOD list

Commit 4e2e760d3ead ("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: 4e2e760d3ead ("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