Skip to content

Commit 35d0565

Browse files
Aaron Lurafaeljw
authored andcommitted
ACPI / video: update condition to check if device is in _DOD list
Commit 0b8db27 ("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: 0b8db27 ("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>
1 parent 009d043 commit 35d0565

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/acpi/video.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,8 @@ static bool acpi_video_device_in_dod(struct acpi_video_device *device)
11641164
return true;
11651165

11661166
for (i = 0; i < video->attached_count; i++) {
1167-
if (video->attached_array[i].bind_info == device)
1167+
if ((video->attached_array[i].value.int_val & 0xfff) ==
1168+
(device->device_id & 0xfff))
11681169
return true;
11691170
}
11701171

0 commit comments

Comments
 (0)