diff options
author | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:12:01 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2012-08-07 17:12:01 (GMT) |
commit | f437235a474545c811231d4fce3db1319e8b983c (patch) | |
tree | 2d8aa84bc758ad4e67b5d6d5d2f227a74128b396 /abs/core/linux/3.4.4-fix-backlight-regression.patch | |
parent | 0dc15529fbfb8f7d76a5e7e968f84971c4207b32 (diff) | |
download | linhes_pkgbuild-f437235a474545c811231d4fce3db1319e8b983c.zip linhes_pkgbuild-f437235a474545c811231d4fce3db1319e8b983c.tar.gz linhes_pkgbuild-f437235a474545c811231d4fce3db1319e8b983c.tar.bz2 |
linux 3.4.4
Diffstat (limited to 'abs/core/linux/3.4.4-fix-backlight-regression.patch')
-rw-r--r-- | abs/core/linux/3.4.4-fix-backlight-regression.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/abs/core/linux/3.4.4-fix-backlight-regression.patch b/abs/core/linux/3.4.4-fix-backlight-regression.patch new file mode 100644 index 0000000..a0cf0b1 --- /dev/null +++ b/abs/core/linux/3.4.4-fix-backlight-regression.patch @@ -0,0 +1,38 @@ +Subject: Still use ACPI backlight control if _DOS doesn't exist + +This is a regression introduced by commit +ea9f8856bd6d4ed45885b06a338f7362cd6c60e5 + +https://bugzilla.kernel.org/show_bug.cgi?id=43168 + +Some platforms don't have _DOS control method, but the ACPI +backlight still works. +We do not want to lose the backlight control ability on these platforms. + +CC : Igor Murzov <intergalactic.anonymous@gmail.com> +Signed-off-by: Zhang Rui <rui.zhang@intel.com> +--- + drivers/acpi/video.c | 10 ++++++++-- + 1 file changed, 8 insertions(+), 2 deletions(-) + +Index: rtd3/drivers/acpi/video.c +=================================================================== +--- rtd3.orig/drivers/acpi/video.c ++++ rtd3/drivers/acpi/video.c +@@ -565,8 +565,14 @@ acpi_video_bus_DOS(struct acpi_video_bus + video->dos_setting = arg0.integer.value; + status = acpi_evaluate_object(video->device->handle, "_DOS", + &args, NULL); +- if (ACPI_FAILURE(status)) +- return -EIO; ++ if (ACPI_FAILURE(status)) { ++ /* ++ * some platforms don't have _DOS, but the ACPI ++ * backlight control still works ++ */ ++ ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No _DOS\n")); ++ return 0; ++ } + + return 0; + } |