From patchwork Tue Oct 9 22:19:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Murzov X-Patchwork-Id: 1571731 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id CFADEDFFAD for ; Tue, 9 Oct 2012 22:28:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752291Ab2JIW2M (ORCPT ); Tue, 9 Oct 2012 18:28:12 -0400 Received: from forward9.mail.yandex.net ([77.88.61.48]:33721 "EHLO forward9.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752184Ab2JIW2M (ORCPT ); Tue, 9 Oct 2012 18:28:12 -0400 X-Greylist: delayed 510 seconds by postgrey-1.27 at vger.kernel.org; Tue, 09 Oct 2012 18:28:12 EDT Received: from smtp6.mail.yandex.net (smtp6.mail.yandex.net [77.88.61.56]) by forward9.mail.yandex.net (Yandex) with ESMTP id 99DAFCE1760; Wed, 10 Oct 2012 02:19:36 +0400 (MSK) Received: from smtp6.mail.yandex.net (localhost [127.0.0.1]) by smtp6.mail.yandex.net (Yandex) with ESMTP id 438421640013; Wed, 10 Oct 2012 02:19:36 +0400 (MSK) Received: from unknown (unknown [46.173.39.73]) by smtp6.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JPw4xP3t-JZw8x4Fg; Wed, 10 Oct 2012 02:19:36 +0400 From: Igor Murzov To: linux-acpi@vger.kernel.org Cc: Zhang Rui , Len Brown , Sergey V , linux-kernel@vger.kernel.org, Igor Murzov Subject: [PATCH] ACPI video: Ignore AE_AML_PACKAGE_LIMIT errors after _DOD evaluation. Date: Wed, 10 Oct 2012 02:19:06 +0400 Message-Id: <1349821146-19155-1-git-send-email-e-mail@date.by> X-Mailer: git-send-email 1.7.12.1 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This should fix brightness controls on some laptops. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=47861 Signed-off-by: Igor Murzov --- drivers/acpi/video.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 1e0a9e1..01bb58d 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -1349,8 +1349,12 @@ acpi_video_bus_get_devices(struct acpi_video_bus *video, struct acpi_device *dev; status = acpi_video_device_enumerate(video); - if (status) - return status; + if (status) { + if (status == AE_AML_PACKAGE_LIMIT) + status = 0; /* Ignore this error */ + else + return status; + } list_for_each_entry(dev, &device->children, node) {