Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8947127ybi; Tue, 23 Jul 2019 18:40:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7gVi+4H8SWTj4rYlrLdQeaheOzARKAc9EVP3Z3PQev7qQONa93Dg/zbV5zf4AwHnVCLmF X-Received: by 2002:a17:90a:ad89:: with SMTP id s9mr85871814pjq.41.1563932409012; Tue, 23 Jul 2019 18:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563932409; cv=none; d=google.com; s=arc-20160816; b=h+9Y8jsJNKqTtCdN4hqFy35RM1qK7a3vuPrdfD6eQdPdMfYMGagjFQqekY0t5eg5Su CDtCvBQPbljaIsRY1ApYoyfvFMIE63eV3nVwqZNvM3E2dFTLlty1FCL86py1TgpuJUEH BtLC/hw+UGa6NqcYt2DkbJJ4iZh3CR8yFIlMcMyj6pCiny8cJNhoTHgrj2p4kE9QdG1y t2uo94Zw6t9VuKHCA8jVNv7pZSwjnyIVoNdeuxd+ah8F4J+CvsTa0xYpNE9IDC4Hu7X6 K4DbvUv1svF1qO0CMYAOUDfxsGic69lBO+5/tN5LwKne0/JN22plfeOgSQpre4JTMuQx 2zEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=bctZIRJmF0Tt66epBoIW8Nv3zbBghWNg0cSJA3lvz58=; b=v6rKoIgLhwDzPGmrpb0d4AhdU3iqE7poZ0Do6vp5ECTbk1P8xNs29BNqhwXnGXSnmS E7ZSLwmorm8UVmeIlQ/BDkEflLpmBlPoF6Euw5lmnCkCBTFN/oe9ZU2pjuoOe8jDtDOd 3RDB4juRaMVLzSnqx/NPS4yB8qE4+uoO5CRfPoYH0tq+Uj24Wqo/xBTmIC2INAP1RJrO 5exG2eBE6dNLl1BFbKTXO5pIKilkzb2QANQYZD8epW3wViStDSf3JkD2IUKIUI41rrsb 83RRkgJvd5fCHFSIhw0luhe/EDjQy1nJoaGQXYjlBgsHL4YZQ3+Nt12o/DIAYWAeTav/ /5Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="m/AmoBeO"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4si12005889pgt.20.2019.07.23.18.39.53; Tue, 23 Jul 2019 18:40:08 -0700 (PDT) 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; dkim=pass header.i=@chromium.org header.s=google header.b="m/AmoBeO"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732688AbfGWQ5H (ORCPT + 99 others); Tue, 23 Jul 2019 12:57:07 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43392 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730940AbfGWQ5H (ORCPT ); Tue, 23 Jul 2019 12:57:07 -0400 Received: by mail-qt1-f193.google.com with SMTP id w17so42572736qto.10 for ; Tue, 23 Jul 2019 09:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=bctZIRJmF0Tt66epBoIW8Nv3zbBghWNg0cSJA3lvz58=; b=m/AmoBeOCFr0QaZjltESdsZE4fOROqUL06GHXh0L+7fh+af27xkAW20v/yQphJ2PRI 6VjowW5mw+hZQYU1tset+mrRNA/vq5KMxhiR3MJetGBuySXEu80cNuztkUafdZ1Fr5uI Ow1mCKVOl7XYDOObd5P0WXvNLA6IvVjUBX8vw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=bctZIRJmF0Tt66epBoIW8Nv3zbBghWNg0cSJA3lvz58=; b=JIezuTgbHmgmmZDdPiHQhLWB599o0lySt3+4Mw/jiZRYapr1+AOqLCSCdn/xN8z0LE CtOglGbir6BHPvnWlK2rHxuPNKQ1y1NNI2CXyKzBrOGUyazI7lcRGZSTDl3yKDCxTP+D N1K7WtlzpP6gzSfhIb/4NiQ8fwsm6QzhbRMZvyQdB3/HjZKMOmklNtfPBhY7zUsR2D8c +5LkQEp7THpsv8L/FB5+To48F5PDu3LV1s0gQQqg7Ira49V+PSY8ta6/0TZ1YLlVVROF apW8hb9WYFPLiXoMfetTx65a7GhF7Qgqp6aOVy7l2IDNQGKTjYdEJM3fOJXLpHOS5fHq NrkQ== X-Gm-Message-State: APjAAAVcRDep81STVW8R66aJQtdP3LQNI68AT2Kvtux3ghvCCY6qaBjw dPTaio81jtga4f+HedN3a7r8kqAld5yhnFayx/cfnw== X-Received: by 2002:aed:3742:: with SMTP id i60mr53528186qtb.376.1563901026650; Tue, 23 Jul 2019 09:57:06 -0700 (PDT) MIME-Version: 1.0 References: <20190722182451.GB24412@kroah.com> <20190722223337.36199-1-ravisadineni@chromium.org> In-Reply-To: From: Ravi Chandra Sadineni Date: Tue, 23 Jul 2019 09:56:55 -0700 Message-ID: Subject: Re: [PATCH 0/2] power: Refactor device level sysfs. To: "Rafael J. Wysocki" Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "the arch/x86 maintainers" , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Greg Kroah-Hartman , Baoquan He , Dave Young , Linux Kernel Mailing List , Linux PM , Todd Broch Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, https://patchwork.kernel.org/patch/11045069/ seems to create a virtual device under wakeup class with the same name as the actual device. I don't see a way to reliably map these virtual devices to the actual device sysfs node. For example if we have to know if a particular input device has triggered a wake event, we have to look for a virtual device under /sys/class/wakeup with the same name. I am afraid that depending just on the name might be too risky as there can be multiple devices under different buses with the same name. Am I missing something? Thanks, Ravi On Tue, Jul 23, 2019 at 12:44 AM Rafael J. Wysocki wrote: > > On Tue, Jul 23, 2019 at 12:33 AM Ravi Chandra Sadineni > wrote: > > > > wakeup_abort_count and wakeup_count attributes print the > > same (wakeup_count) variable. Thus this patchset removes the > > duplicate wakeup_abort_count sysfs attribute. This patchset also > > exposes event_count as a sysfs attribute. > > > > Ravi Chandra Sadineni (2): > > power: sysfs: Remove wakeup_abort_count attribute. > > power:sysfs: Expose device wakeup_event_count. > > I don't think you need this at all, because > https://patchwork.kernel.org/patch/11045069/ is exposing what you need > already. > > Thanks!