Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4995345ybi; Tue, 30 Jul 2019 11:50:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqypz3uKlXXAg0GccevFR/FPTIayclJxjEa7q5e/Dt5TyEXKyAPPCzO/4xPGx5wS5aXMRUwh X-Received: by 2002:a17:902:b415:: with SMTP id x21mr32295907plr.287.1564512619465; Tue, 30 Jul 2019 11:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564512619; cv=none; d=google.com; s=arc-20160816; b=LLVu3F2zBNOkwCeXd7fViqG2euDuZSrWt8bjip//eUMA4txRVmxbU+w2afB3t4IKza n0KmwxufaDZVZ4RedL21MXv5Av17r3k+qNlj4ZnRwbNhUETdG1i92YPi774C9sfQn3LM P//FgWXJl8FgnjCJ2w+QDvrFCkE0/iZjhDrHm/XjoPMe13O5TTe+I7vc4BGq5jSd2gsc 8gyVy1NcRH/snJPtpNUnHBFIg8sy8rX68fNC2+jrh1vWrP2dzeuF7325I6ZSXvzw9v5D 5IVZXpY8zDMxF8vb5/pwfhSykMpKn6E0NL3TX0/RwCf0XvBAGZ+OPBB+C3j0vlXnu0Az zLVQ== 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=z+31YRcGYKxlw4zSSmAToPPt3gVT1HPAnO6GnYlbMZo=; b=pZwxQSE0wqGfXIeoRBO2M5P5ef65TId3grTrpU9BYwEaO7YMn6yzIozPCx4jaUBu4p YHyI0tnU9okaUV8WY24Ldifc2ADuyGBWQtecqEdCcEjKhopt6+Eia6iWaRqwRgg2RZsA d2YTjUdJ+JQg2FYdQaBKx0J0sA4QhvHn4atGZ8ZVufhwQeJYm8Xv9HbLiYCpL+LY8tCt B6j0CpkGE2M0HSilMrH/DWfgVplRYNjaG+rBZOlegpRwe4az3Ey9GvNqDZQ+vB4gPsBv sbmoq0iptZ76dTrIHbUiSoxtr8k2qFXjig/pmYvgvOr34QD8Yg0cIgLqYo+hO7b6W2Tq AeQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TJAq4qg2; 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 a9si30831006pfn.104.2019.07.30.11.50.04; Tue, 30 Jul 2019 11:50:19 -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=TJAq4qg2; 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 S2388425AbfG3SsM (ORCPT + 99 others); Tue, 30 Jul 2019 14:48:12 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:34991 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388405AbfG3SsL (ORCPT ); Tue, 30 Jul 2019 14:48:11 -0400 Received: by mail-pf1-f196.google.com with SMTP id u14so30324700pfn.2 for ; Tue, 30 Jul 2019 11:48:11 -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=z+31YRcGYKxlw4zSSmAToPPt3gVT1HPAnO6GnYlbMZo=; b=TJAq4qg2C4MBQbkD/CTjGokwpAKEzdcOAFM3jCYS+mlBvSYxgOUsD6++v8VwgpaaYf SnCgoasoMjxoVS0Oq099Bjly5HzPXJFsePK4WjeTg3GfZPjMPTBd6HL1yDn6dDWty9zB TYGgUam3ePk5GjM3kr1xPw56i9qyvhK8YjlW0= 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=z+31YRcGYKxlw4zSSmAToPPt3gVT1HPAnO6GnYlbMZo=; b=APs9sb5b56ex9y/bl96xdkuyMXZE/kotlvuItOB+EPDgZS8FILQYzwsekLQwOsLjDb gOjOXLVar0XDJrX4QdmxNRxk0Khp+3cGXLJPUZ1AewS4ih5OiXLTnccN4nO5fR2vqL4g bAmdBJk0jbnv4xgxRzj1pXjRr19OumZrJ1+w7VjtGLeA2gPpNgp56dzrHGr577Kov1H5 BCqvD9T3qhrDExhnSpYYdPHFfBdLniyIbV+38N5OAuu1hEe204evnOjiHKwJ6QaUsubY c1QHDLa9A/Ul08zetHhHq6iYqxpKndMR5vXUlJ0BxjGYD8qsuBxxY6wvBwyiWFYFDh5n G0Rg== X-Gm-Message-State: APjAAAUYYsE7DSXpkywDuzHFb/ahzKjKbYHlVa1pvPLTmxZTxBz+8MxD XOG7drcTFLZL5WV5vPHRZtTjJg== X-Received: by 2002:a62:3445:: with SMTP id b66mr43403564pfa.246.1564512490944; Tue, 30 Jul 2019 11:48:10 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id n140sm68012721pfd.132.2019.07.30.11.48.10 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 30 Jul 2019 11:48:10 -0700 (PDT) Message-ID: <5d4090ea.1c69fb81.d5cab.4dcd@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: References: <20190730024309.233728-1-trong@android.com> Cc: "Rafael J. Wysocki" , 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" , Tri Vo Subject: Re: [PATCH v5] PM / wakeup: show wakeup sources stats in sysfs User-Agent: alot/0.8.1 Date: Tue, 30 Jul 2019 11:48:09 -0700 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Tri Vo (2019-07-30 11:39:34) > On Mon, Jul 29, 2019 at 10:46 PM Rafael J. Wysocki wr= ote: > > > > On Tue, Jul 30, 2019 at 4:45 AM Tri Vo wrote: > > > - Device registering the wakeup source is now the parent of the wakeu= p source. > > > Updated wakeup_source_register()'s signature and its callers accord= ingly. > > > > 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? 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)?