Received: by 10.223.185.116 with SMTP id b49csp2415675wrg; Thu, 22 Feb 2018 13:24:29 -0800 (PST) X-Google-Smtp-Source: AH8x2254Pkk0cZ1hXSHfusTsp9YoUHRkJ8IeO0ujGM2RPReMwkJU+S7C0rsUHPGuwb0HzKEXD9H4 X-Received: by 10.98.55.66 with SMTP id e63mr8337226pfa.102.1519334669562; Thu, 22 Feb 2018 13:24:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519334669; cv=none; d=google.com; s=arc-20160816; b=sEG7cjX8MaDfIMmJ1lP1X+zP5FncmlOcvi/W5kVxXQ7HgCAqsxE0HDRXlEP68KGV7V opLqIVPnahexjx6F37CGRUe3U0folat/4ToGejF1guA+SWAq14gqhxwsOI05JlWqdnoi cxCCPbkgcXT8r2lwfAeNwAlOLUCxPgiGYAlhvVl3iWTR52BqBZE2VW7PtV+sHTSVN3rn igUepBfxxT4iF0OWei9OvklA3sIGRbMnHnKyGYXvOGQaFVM44qoteNQAC8Fb+BbdImAX pO3cCJhy6cdRI/1JdTUIFRYmabLqhpHCIccSfXe2ySdSAG0ezux0q8DLJJDPbMvJdL4q hg+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=OH8GwpsLL/b7HdCOZSrq74de/0o4V9Mo2PFKTXZSanI=; b=jBxYkQkakIkQzIcHuQjep4d5U4pSO9xwW6Wui6NdrRIPSZy6NiE5IlFQfFDI4Prcu7 I8KDzKQk6Im4BRLajcs5UjQTXsLHoqzB8RAFizdR9OeAH19nu4UXwbFGQbVqFgtWasad CuV8pTdaNjYrnqsZ7cN7XX1JZIMXw2UonvGHKOjJgpBuwrSg6sPCXNF1D1klKXDKPpzm C1iuxewPPj/0yVepCwY12ELIKIY+MrESZdrdJC/cSU/bKSlOWgTCnvERHU9pthDCWUIp e/C7gM+1PYgHwphj0QH6QdOU4Ss2tHvX2cy9hEPa12GUV5G8jXeAqv/t6ud03FP/G0T5 30qA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a25si513463pgn.429.2018.02.22.13.24.14; Thu, 22 Feb 2018 13:24:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751475AbeBVVXC (ORCPT + 99 others); Thu, 22 Feb 2018 16:23:02 -0500 Received: from mga06.intel.com ([134.134.136.31]:35633 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751378AbeBVVXA (ORCPT ); Thu, 22 Feb 2018 16:23:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 22 Feb 2018 13:22:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,378,1515484800"; d="scan'208";a="19713333" Received: from cvesci9.sc.intel.com (HELO localhost.localdomain) ([10.3.62.68]) by fmsmga008.fm.intel.com with ESMTP; 22 Feb 2018 13:22:59 -0800 From: Wenkai Du To: Benson Leung Cc: Olof Johansson , linux-kernel@vger.kernel.org, "Rafael J . Wysocki" , Wenkai Du Subject: [PATCH] platform/chrome: cros_ec_lpc: wake up from s2idle on Chrome EC Date: Thu, 22 Feb 2018 13:21:17 -0800 Message-Id: <20180222212117.122560-1-wenkai.du@intel.com> X-Mailer: git-send-email 2.16.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chrome platform installed a Chrome EC notify handler which prevents default EC GPE handler getting called. Add pm_system_wakeup to the Chrome EC notify handler so wake up from s2idle can happen. Suggested-by: Rafael J. Wysocki Signed-off-by: Wenkai Du --- drivers/platform/chrome/cros_ec_lpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/platform/chrome/cros_ec_lpc.c b/drivers/platform/chrome/cros_ec_lpc.c index af89e82eecd2..2a40c2b1a7ff 100644 --- a/drivers/platform/chrome/cros_ec_lpc.c +++ b/drivers/platform/chrome/cros_ec_lpc.c @@ -31,6 +31,7 @@ #include #include #include +#include #define DRV_NAME "cros_ec_lpcs" #define ACPI_DRV_NAME "GOOG0004" @@ -235,6 +236,9 @@ static void cros_ec_lpc_acpi_notify(acpi_handle device, u32 value, void *data) cros_ec_get_next_event(ec_dev, NULL) > 0) blocking_notifier_call_chain(&ec_dev->event_notifier, 0, ec_dev); + + if (value == ACPI_NOTIFY_DEVICE_WAKE) + pm_system_wakeup(); } static int cros_ec_lpc_probe(struct platform_device *pdev) -- 2.16.1