Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4996802ybi; Tue, 30 Jul 2019 11:52:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpUz34yND0A/I/wapYpJsTX0gqsFcjg1xziYD+AuqYdRnx7l1hJmWIZmNXX5bIoRLpqqwy X-Received: by 2002:a62:26c1:: with SMTP id m184mr41515176pfm.200.1564512727645; Tue, 30 Jul 2019 11:52:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564512727; cv=none; d=google.com; s=arc-20160816; b=er+BG3rmc1fzfoWDE3F/JmMG+iUUHNLz7dzfPVqewZt2Xjtn3D9GCHqDWTWBNSa8Yw 8c4CPR26LmTBzC3BqrExHBFQ/6SxjuuyvZvSaNXNgbAzeLJiqFvGKcwDkmWYztZdeyod ZKmYlxdE7nNTIlmjFkf5Ek5yhrpr8O9FQRMtn2z1De3a6e6JkxGIw2lrCXHql6i5S/pC C6VzGPFbdodtppAHpEV7+v7HyV2DrR1X78JksdAr6Dy92DoaU0KrOT4yNa3PpxxB7mUU Ct9aqh79po9cj70hSbouMVCWTdss732iEEHTEdDSbZlIvfYzPnKPx2GOFRVHxP3o/8xf 1Atg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=H3WQZBFNb4FleqIF9vz3VyKZy3SZsT6oHMjCJrf7jSI=; b=Denb6pgCm6ZZTeKJzj33VMcqRrVxgzB29EO83o60dIp2pID6J7pmYVy62xjpooCayH tSfkieJjZRql52K+hZQpMp20dD3EM77UIySwYvKEAfPJzgVnVoG5Tx/l3yRsm/jR7+4o 3RZDtNkUDUFABgTkA5fIsz7hp0eJBivG8h6hg0PgLeyr1a8JWS4j0bh3V2HlQ49fdXnv hptfqMqjopXLJ/+icKY2Xnp2miRrVWLLIEknM5ZexI/pBFks5ipHnopnMmlp6AIamfor 3kw8XQER9wTUgWfS0P/kXjQuK9Ih82kX/yG8k06QLDC2L096dfAfU537nZECW50YxD2f Wo/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bsuJcdmh; 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 36si30259399pla.80.2019.07.30.11.51.52; Tue, 30 Jul 2019 11:52:07 -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=@kernel.org header.s=default header.b=bsuJcdmh; 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 S1730101AbfG3SvQ (ORCPT + 99 others); Tue, 30 Jul 2019 14:51:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:33098 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbfG3SvP (ORCPT ); Tue, 30 Jul 2019 14:51:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3053320693; Tue, 30 Jul 2019 18:51:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564512674; bh=CsmCRJXukR0FZ6/5kobffgcEJX6Pp1GPGySlVRYW5js=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bsuJcdmhOlXBLCSe1VpVY3yIZKNYZ0N60s/p0emjIOvoZqX6A7jACiG0cG9mxOM5K gRuxr/VkEAx5JFwfwpRcCl6SerEcYCVdMhvqENgmH99J1YN09T/dBp90H9ivis18+k J4Sz/nZgLHnzhCNzXTqtRm7Iddmr08EeaC9nQ4Qg= Date: Tue, 30 Jul 2019 20:51:12 +0200 From: Greg Kroah-Hartman To: Stephen Boyd Cc: "Rafael J. Wysocki" , Tri Vo , "Rafael J. Wysocki" , Viresh Kumar , Hridya Valsaraju , Sandeep Patil , Kalesh Singh , Ravi Chandra Sadineni , Linux Kernel Mailing List , Linux PM , "Cc: Android Kernel" , kbuild test robot Subject: Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs Message-ID: <20190730185112.GA17119@kroah.com> References: <20190730024309.233728-1-trong@android.com> <5d4090ea.1c69fb81.d5cab.4dcd@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d4090ea.1c69fb81.d5cab.4dcd@mx.google.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 30, 2019 at 11:48:09AM -0700, Stephen Boyd wrote: > Quoting Tri Vo (2019-07-30 11:39:34) > > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki wrote: > > > > > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > > - Device registering the wakeup source is now the parent of the wakeup source. > > > > Updated wakeup_source_register()'s signature and its callers accordingly. > > > > > > And I really don't like these changes. Especially having "wakeup" > > > twice in the path. > > > > I can trim it down to /sys/class/wakeup//. Does that sound good? > > Using the same prefix for the class and the device name is quite common. > For example, see the input, regulator, tty, tpm, remoteproc, hwmon, > extcon classes. I'd prefer it was left as /sys/class/wakeup/wakeupN. The > class name could be changed to wakeup_source perhaps (i.e. > /sys/class/wakeup_source/wakeupN)? > Ah, the issue is that these end up on the virtual "bus". Yeah, sorry, you are right, they need to have a unique prefix in order to prevent name collisions. thanks, greg k-h