Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751747AbdGaFsx (ORCPT ); Mon, 31 Jul 2017 01:48:53 -0400 Received: from mga04.intel.com ([192.55.52.120]:63843 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751701AbdGaFsu (ORCPT ); Mon, 31 Jul 2017 01:48:50 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,440,1496127600"; d="scan'208";a="884527044" From: Lv Zheng To: "Rafael J . Wysocki" , "Rafael J . Wysocki" , Len Brown Cc: Lv Zheng , Lv Zheng , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH v2 4/4] ACPI / EC: Enable noirq stage GPE polling Date: Mon, 31 Jul 2017 13:48:47 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: <99f23db65bbe89ee856018629654584a96734c84.1501141963.git.lv.zheng@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1108 Lines: 29 This patch enables noirq stage GPE polling for the EC driver. EC is a very special driver, required to work throughout the entire suspend/resume process. Thus this patch enables IRQ polling for EC during noirq stages to avoid all kinds of possible issues. If this commit is bisected to be a regression culprit, please report this to bugzilla.kernel.org for further investigation. Signed-off-by: Lv Zheng --- drivers/acpi/ec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index 5f951ba..f5d629b 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -164,7 +164,7 @@ module_param(ec_polling_guard, uint, 0644); MODULE_PARM_DESC(ec_polling_guard, "Guard time(us) between EC accesses in polling modes"); static unsigned int ec_event_clearing __read_mostly = ACPI_EC_EVT_TIMING_QUERY; -static unsigned int ec_gpe_polling __read_mostly = ACPI_EC_GPE_POLL_NONE; +static unsigned int ec_gpe_polling __read_mostly = ACPI_EC_GPE_POLL_RESUME; /* * If the number of false interrupts per one transaction exceeds -- 2.7.4