Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5402058ybi; Tue, 30 Jul 2019 20:15:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8n6b2vBDY4+zTehazlQapKOcRVCJadcPxnL8BU6l7tcN9k9McBVf8OdmPxmdbXtZwQOgg X-Received: by 2002:a63:e901:: with SMTP id i1mr94623713pgh.451.1564542949259; Tue, 30 Jul 2019 20:15:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564542949; cv=none; d=google.com; s=arc-20160816; b=RfwqI7z8+SOeA7SSl2ijoQl+NwK+0epWxhvcdx72loSPypBljx+zq3hYqzsHmWo/gQ AGHcUW3JsPg0r11B5/WW6hhUsJqYzz+lHJKz36xEyFOgvojHDX8t8C1hbFp2uNwcRfKo SE0vGzkth86XZ96L8Rk79AT8v14F4juOkVHb7nvw7fqNngZhD+oZKqap9c+NUdPFFSO9 lh7jJ3UPgTsvDszG0UPRNsdnImoayaHdTRZPKg4aEKudliYqc8OvA20HOxBzDXV0o3RB o+CBb6rz1YpHuCtfmOIiBcLW00gKRP4T5C0HKZR2DUUd1DdttBfHtFFpZuwYW9wwZaOe oDVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:subject:to:from:cc :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=wtE8Qs6WxdqfhKDtqY7NOxwIx8qnuciqL0xbnCEtDy8=; b=UoNDZcHJVCezb0U9Wunnh340TwX6t69dw/vY6iJ2gB/GtZIzm68asdE/5e1uj9xBHw BcdqLFnUko5w28yexYwkUIA7ucFqipakK29b8IJMDxWGec7mptMG9kyy0JJiHPRWmtT7 qGKXhpQ8KoEVGozHCAVrmXitIn6AoHMH5uOan1H/ZZWf++OF4Kr1/uTJwXbNGwpVCu+m kQPlpWUx2XXY65SBsoNEOCgdElqEeYdwLTeRdTNNosMfeGNIQzug+rnWd7tkVX+9GcDM iJicFmUp+ga0o1c3lxoTKYqnzSQMr5cqoYOCYqbMI2jnuvIpk0YuPIy2hy45wTvkUpzC J3Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=lf0JpW9c; 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 y70si31596362pfg.184.2019.07.30.20.15.33; Tue, 30 Jul 2019 20:15:49 -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=lf0JpW9c; 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 S2388184AbfG3W0k (ORCPT + 99 others); Tue, 30 Jul 2019 18:26:40 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:35360 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388170AbfG3W0k (ORCPT ); Tue, 30 Jul 2019 18:26:40 -0400 Received: by mail-pf1-f196.google.com with SMTP id u14so30589934pfn.2 for ; Tue, 30 Jul 2019 15:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:cc:from:to:subject:user-agent:date; bh=wtE8Qs6WxdqfhKDtqY7NOxwIx8qnuciqL0xbnCEtDy8=; b=lf0JpW9ckD66UO7/vIhzs7MO0L2BH0pJ2Z5wVAUptbQ4zwlT/dfgE/gLqdt+cmnojs eUO2YzcXwrTXe7Qq62KIBCw8xgJP4qmKQ199TOALlhH/RuZTJhJEcw2tjBIj33yD74kd jREJt4lJCLk8a3jx4NXibqd00INprbu8qPUhg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:cc:from:to:subject :user-agent:date; bh=wtE8Qs6WxdqfhKDtqY7NOxwIx8qnuciqL0xbnCEtDy8=; b=SMJVR1CNF4RdZh8PE2C6t0S8luJFdCG+VOHDPGqigjgEc5KZU5DScUtCbYvv/OCTyQ UN588ttpaVnc24bzlXGdAIpxOTNXznyvHJtkMk8rxvF3LBNsuHKMyspg07FwiIiQuTPd IzfTVfxYypCXUKyvvcWsCV+DaDS/Q/sjhPpwSo8tPRIkAejnDtmD6n5ifS3PvHiHtN8N G5g5a10fY3WmzwM0Faz+nDLz/HPr7frcSb6oh3ZG6EWxLbSYUOeCsxRRdh4DRSc4jT5k WVy1KD/HakybZIzJjrL/Ox/p7jf+hTYs9wALsfnT60ViZO2gLT9kl8tFAZz7F1LGBt9B a6zw== X-Gm-Message-State: APjAAAXEHd/OMV8J0lj2Ge7mmH30oUZQVWhguaYC/uFK+ba8pHzoIqnO MpnE3aBT1v1TtgmASyxbafQ0zbb+sGjsnQ== X-Received: by 2002:a63:8a49:: with SMTP id y70mr16015123pgd.271.1564525599777; Tue, 30 Jul 2019 15:26:39 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id g1sm107068280pgg.27.2019.07.30.15.26.39 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 15:26:39 -0700 (PDT) Message-ID: <5d40c41f.1c69fb81.ac63f.947f@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <2085893.cJkfNvi94x@kreacher> References: <20190730024309.233728-1-trong@android.com> <5d4090ea.1c69fb81.d5cab.4dcd@mx.google.com> <2085893.cJkfNvi94x@kreacher> Cc: "Rafael J. Wysocki" , Tri Vo , Greg Kroah-Hartman , Viresh Kumar , Hridya Valsaraju , Sandeep Patil , Kalesh Singh , Ravi Chandra Sadineni , Linux Kernel Mailing List , Linux PM , "Cc: Android Kernel" , kbuild test robot From: Stephen Boyd To: "Rafael J. Wysocki" Subject: Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs User-Agent: alot/0.8.1 Date: Tue, 30 Jul 2019 15:26:38 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Rafael J. Wysocki (2019-07-30 15:17:55) > On Tuesday, July 30, 2019 8:48:09 PM CEST 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 w= akeup source. > > > > > Updated wakeup_source_register()'s signature and its callers ac= cordingly. > > > > > > > > And I really don't like these changes. Especially having "wakeup" > > > > twice in the path. > > >=20 > > > I can trim it down to /sys/class/wakeup//. Does that sound good? > >=20 > > 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)? >=20 > Alternatively /sys/class/wakeup/wsN >=20 Or /sys/class/wakeup/eventN? It's your bikeshed to paint.