Skip to contentSkip to conversation

Patch "ACPI / video: skip evaluating _DOD when it does not exist" has been added to the 4.4-stable tree

PATCH [email protected] 1 participant 1 message Mar 22, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

ACPI / video: skip evaluating _DOD when it does not exist

to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
acpi-video-skip-evaluating-_dod-when-it-does-not-exist.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From e34fbbac669de0b7fb7803929d0477f35f6e2833 Mon Sep 17 00:00:00 2001

From: Alex Hung <[email protected]>
Date: Fri, 27 May 2016 15:47:06 +0800
Subject: ACPI / video: skip evaluating _DOD when it does not exist

From: Alex Hung <[email protected]>

commit e34fbbac669de0b7fb7803929d0477f35f6e2833 upstream.

Some system supports hybrid graphics and its discrete VGA does not have any connectors and therefore has no _DOD method.

---
 drivers/acpi/acpi_video.c |    3 +++
 1 file changed, 3 insertions(+)
drivers/acpi/acpi_video.c +3 -0
@@ -1211,6 +1211,9 @@ static int acpi_video_device_enumerate(s
 	union acpi_object *dod = NULL;
 	union acpi_object *obj;
 
+	if (!video->cap._DOD)
+		return AE_NOT_EXIST;
+
 	status = acpi_evaluate_object(video->device->handle, "_DOD", NULL, &buffer);
 	if (!ACPI_SUCCESS(status)) {
 		ACPI_EXCEPTION((AE_INFO, status, "Evaluating _DOD"));

Patches currently in stable-queue which might be from [email protected] are

queue-4.4/acpi-video-skip-evaluating-_dod-when-it-does-not-exist.patch