ACPI video: Ignore errors after _DOD evaluation.
PATCH 1/1 ACPI video: Ignore errors after _DOD evaluation.
There are systems where video module known to work fine regardless of broken _DOD and ignoring returned value here doesn't cause any issues later. This should fix brightness controls on some laptops.
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47861
---
Previous discussion of the issue:
http://thread.gmane.org/gmane.linux.acpi.devel/56345
drivers/acpi/video.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
drivers/acpi/video.c +7 -4
@@ -1345,12 +1345,15 @@ static int acpi_video_bus_get_devices(struct acpi_video_bus *video, struct acpi_device *device) { - int status; + int status = 0;struct acpi_device *dev; - status =acpi_video_device_enumerate (video); -if (status) -return status; +/* +* There are systems where video module known to work fine regardless +* of broken _DOD and ignoring returned value here doesn't cause +* any issues later. +*/ +acpi_video_device_enumerate (video);list_for_each_entry (dev, &device->children, node) {
Signature · 1 line
1.7.12.1
Zhang Rui
AppliedQuoted 8 lines · Igor Murzov
There are systems where video module known to work fine regardless of broken
_DODand ignoring returned value here doesn't cause any issues later. This should fix brightness controls on some laptops.Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47861
Signed-off-by Igor Murzov <[email protected]>Reviewed-by Sergey V <[email protected]>
applied to my next branch.
thanks,
rui
Quoted 21 lines
---
Previous discussion of the issue:
http://thread.gmane.org/gmane.linux.acpi.devel/56345drivers/acpi/video.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)drivers/acpi/video.c +1
-3@@ -1345,12 +1345,15 @@ static int acpi_video_bus_get_devices(struct acpi_video_bus *video, struct acpi_device *device) { - int status; + int status = 0;struct acpi_device *dev; - status =acpi_video_device_enumerate (video); -if (status)
drivers/acpi/video.c static int · line 1359
Quoted 10 lines
drivers/acpi/video.c +6
-1-return status; +/* +* There are systems where video module known to work fine regardless +* of broken _DOD and ignoring returned value here doesn't cause +* any issues later. +*/ +acpi_video_device_enumerate (video);list_for_each_entry (dev, &device->children, node) {
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html