Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6331918ybi; Wed, 31 Jul 2019 12:24:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyriqp+v4YAXld/4WIARZJZZP8LenUFaqUiKzM684K/YYF1cVw4+HrtcFhx1SHMrixYPri8 X-Received: by 2002:a63:8ac4:: with SMTP id y187mr76087042pgd.412.1564601079859; Wed, 31 Jul 2019 12:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564601079; cv=none; d=google.com; s=arc-20160816; b=JcLT+YfOv1wQCVjhTR4u+aJkUQQxttJKlTlzmaIGY2hVuGbwB9VayqcN8s83X+xB0Z rlyq9aj8CbKuARPwKcofBRD6h2q6/uJZh3N6D5BG3qSdEo4rkzHvFutOLsFNS9VsssiA YA9teDJQUXfcnvbguKqdaMFGakdyhAZTOb4CVc2CBUe3ULLRM7+50/oh5ngsMxOxWDG7 FFVG9d9zmk21GEX5QbDliCVSPW5OqAyGWazJxiWBxpQ9O6WPhUSh5H8VAqWhQYvBOeHs Br1zvAKfw6GNla3onuvm9C4Z9e7HDtmNIUVkdIXmXbuadNMKgq0f6YYRG6dz2aXt6ipx GsFA== 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=muxu6jhUglFal2aeCELm1zbVJsnwXB+AOUeCtPynXec=; b=rggmBYUxme5KkvumR1TSeBJkOuM1iwWh8l5nTAGSDw3rkCyYeO0L+JtUWeXNYSK2DP Um+QZpg8TrkN0dQwSy+4oHjeyQ9zkgfBnn5AGRwb6vt6gm8g4A1qwlyKo6BM9Czkv3aI nubki0UeX4pFmR/AySmuKemUWn5pmCy7/YB5PWEzTbz5ODGOsb9TWo1jUo17oMAIDdLG 8uNZ+9GpsGdAGogfug9yvDIMeK9xKtILXPGnZ6J41xP5Wt450VZojRG0Wp4d6b5lRwCm jAGcXnP9SjJZpC8kV+O4jD2OucXpKzjNP1YOyvQ7ACaTcFUsFLLf92o7uWKhHtYi0lFn 4IDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tK0GSZuV; 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 z4si31338558plk.364.2019.07.31.12.24.24; Wed, 31 Jul 2019 12:24:39 -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=tK0GSZuV; 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 S1730576AbfGaRRX (ORCPT + 99 others); Wed, 31 Jul 2019 13:17:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:52140 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728718AbfGaRRX (ORCPT ); Wed, 31 Jul 2019 13:17:23 -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 23C33206A2; Wed, 31 Jul 2019 17:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564593442; bh=IDr9Fa9DcZN3QqvhuNOkUnI9meArg9GzLkhzynEnQG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tK0GSZuV2dT2SKU1ULOz668DWrYR3xwgpzpfEHM3QR8bn19L6uwDrfR+FSBDFb9Mq 254lPC/kEPeoKITXFQpA2dA+szC34Em06JC6fVdMA2wRQh3Cc0vp3+LLuulmnXzt7n rXsec0tt5uuE7hUcnqtdmnMsYXncIo4ASHwiOz2g= Date: Wed, 31 Jul 2019 19:17:20 +0200 From: Greg Kroah-Hartman To: Stephen Boyd Cc: "Rafael J. Wysocki" , Tri Vo , 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: <20190731171720.GA15301@kroah.com> References: <20190730024309.233728-1-trong@android.com> <5d40d5b3.1c69fb81.6047f.1cc3@mx.google.com> <3963324.N1Qi0Ay72S@kreacher> <5d41cc55.1c69fb81.9480d.8a49@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d41cc55.1c69fb81.9480d.8a49@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 Wed, Jul 31, 2019 at 10:13:57AM -0700, Stephen Boyd wrote: > Quoting Rafael J. Wysocki (2019-07-31 04:58:36) > > On Wednesday, July 31, 2019 10:34:11 AM CEST Rafael J. Wysocki wrote: > > > On Wed, Jul 31, 2019 at 1:41 AM Stephen Boyd wrote: > > > > > > > > > > > We can run into the same problem when two buses name their devices the > > > > same name and then we attempt to attach a wakeup source to those two > > > > devices. Or we can have a problem where a virtual wakeup is made with > > > > the same name, and again we'll try to make a duplicate named device. > > > > Using something like 'event' or 'wakeup' or 'ws' as the prefix avoids this > > > > problem and keeps things clean. > > > > > > Or suffix, like ". > > > > > > But if prefixes are used by an existing convention, I would prefer > > > "ws-" as it is concise enough and should not be confusing. > > Another possibility is 'eventN', so it reads as /sys/class/wakeup/event0 "eventX" is a prefix already used by the input subsystem, so you might run into conflicts here :( "wakeupX" makes sense, no namespace colisions there at all. thanks, greg k-h