From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755361AbcE0HPw (ORCPT ); Fri, 27 May 2016 03:15:52 -0400 Received: from mga04.intel.com ([192.55.52.120]:56463 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755215AbcE0HPv (ORCPT ); Fri, 27 May 2016 03:15:51 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.26,372,1459839600"; d="scan'208";a="989817545" From: Lv Zheng To: "Rafael J. Wysocki" , "Rafael J. Wysocki" , Len Brown Cc: Lv Zheng , Lv Zheng , , linux-acpi@vger.kernel.org Subject: [PATCH v2 0/3] ACPI / button: Clarify initial lid state Date: Fri, 27 May 2016 15:15:43 +0800 Message-Id: X-Mailer: git-send-email 1.7.10 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The initial _LID returning value is not reliable after boot/resume because the BIOS vendors may implement it by returning a cached value that is only updated when a lid notification is received. This causes strange things happening after resuming. This patchset fixes the issue according to this fact. Lv Zheng (3): ACPI / button: Remove initial lid state notification ACPI / button: Refactor functions to eliminate redundant code ACPI / button: Send "open" state after boot/resume drivers/acpi/button.c | 96 ++++++++++++++++++++++++++----------------------- 1 file changed, 52 insertions(+), 44 deletions(-) -- 1.7.10