From patchwork Tue Nov 29 08:30:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Zhang, Rui" X-Patchwork-Id: 9451173 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4BC3360710 for ; Tue, 29 Nov 2016 08:30:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 411F428118 for ; Tue, 29 Nov 2016 08:30:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35E7128138; Tue, 29 Nov 2016 08:30:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7B4E28159 for ; Tue, 29 Nov 2016 08:30:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754651AbcK2IaK (ORCPT ); Tue, 29 Nov 2016 03:30:10 -0500 Received: from mga07.intel.com ([134.134.136.100]:42569 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753284AbcK2IaJ (ORCPT ); Tue, 29 Nov 2016 03:30:09 -0500 Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP; 29 Nov 2016 00:30:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,715,1473145200"; d="scan'208,223";a="36811486" Received: from linyi01-mobl2.ccr.corp.intel.com ([10.254.211.8]) by fmsmga006.fm.intel.com with ESMTP; 29 Nov 2016 00:30:07 -0800 Message-ID: <1480408205.2202.5.camel@intel.com> Subject: [PATCH] ACPI: do not warn if _BQC does not exist From: Zhang Rui To: "Rafael J. Wysocki" Cc: ACPI Devel Maling List Date: Tue, 29 Nov 2016 16:30:05 +0800 X-Mailer: Evolution 3.18.5.2-0ubuntu3 Mime-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From da38c4f4decae22797aa39d5ac8518cada0302e3 Mon Sep 17 00:00:00 2001 From: Zhang Rui Date: Tue, 29 Nov 2016 16:13:56 +0800 Subject: [PATCH] ACPI: do not warn if _BQC does not exist Starting from ACPI spec 3.0, it's only clarified that _BCM control method is required if _BCL is implemented. There is no word saying _BQC is required. And in ACPI spec 6.1 B.5.4, for _BQC, it is explicitly stated that "This optional method returns the current brightness level of a built-in display output device. If present, it must be set by the platform for initial brightness." Thus remove the obsolete warning message. Signed-off-by: Zhang Rui ---  drivers/acpi/scan.c | 3 ---  1 file changed, 3 deletions(-) --  2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 3d1856f..07aa2e6 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c @@ -1119,9 +1119,6 @@ acpi_backlight_cap_match(acpi_handle handle, u32 level, void *context,   ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Found generic backlight "     "support\n"));   *cap |= ACPI_VIDEO_BACKLIGHT; - if (!acpi_has_method(handle, "_BQC")) - printk(KERN_WARNING FW_BUG PREFIX "No _BQC method, " - "cannot determine initial brightness\n");   /* We have backlight support, no need to scan further */   return AE_CTRL_TERMINATE;   }