From patchwork Thu Dec 14 06:38:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lv Zheng X-Patchwork-Id: 10111539 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 E588E602C2 for ; Thu, 14 Dec 2017 06:38:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D3B6E29B0B for ; Thu, 14 Dec 2017 06:38:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C89E329B44; Thu, 14 Dec 2017 06:38:46 +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 7A2F829B0B for ; Thu, 14 Dec 2017 06:38:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751072AbdLNGiq (ORCPT ); Thu, 14 Dec 2017 01:38:46 -0500 Received: from mga12.intel.com ([192.55.52.136]:61938 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751024AbdLNGip (ORCPT ); Thu, 14 Dec 2017 01:38:45 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Dec 2017 22:38:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.45,399,1508828400"; d="scan'208";a="18106204" Received: from lvzheng-moblsp3.sh.intel.com ([10.239.159.58]) by orsmga002.jf.intel.com with ESMTP; 13 Dec 2017 22:38:43 -0800 From: Lv Zheng To: "Rafael J . Wysocki" , "Rafael J . Wysocki" , Len Brown Cc: Lv Zheng , Lv Zheng , linux-acpi@vger.kernel.org Subject: [RFC PATCH 2/3] ACPI: Add GPE number in wakeup device list Date: Thu, 14 Dec 2017 14:38:42 +0800 Message-Id: <845bbddc6aa4226c51c2cec61c2f451368ad7422.1513233415.git.lv.zheng@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: 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 This patch adds GPE wakeup number in /proc/acpi/wakeup. Signed-off-by: Lv Zheng --- drivers/acpi/proc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c index 652f19e..32fdec4 100644 --- a/drivers/acpi/proc.c +++ b/drivers/acpi/proc.c @@ -24,7 +24,7 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) { struct list_head *node, *next; - seq_printf(seq, "Device\tS-state\t Status Sysfs node\n"); + seq_printf(seq, "Device\tS-state\tGPE\t Status Sysfs node\n"); mutex_lock(&acpi_device_lock); list_for_each_safe(node, next, &acpi_wakeup_device_list) { @@ -35,9 +35,10 @@ acpi_system_wakeup_device_seq_show(struct seq_file *seq, void *offset) if (!dev->wakeup.flags.valid) continue; - seq_printf(seq, "%s\t S%d\t", + seq_printf(seq, "%s\t S%d\t%02x\t", dev->pnp.bus_id, - (u32) dev->wakeup.sleep_state); + (u32) dev->wakeup.sleep_state, + (u8) dev->wakeup.gpe_number); mutex_lock(&dev->physical_node_lock);