Re: [PATCH v7 3/3] PM / wakeup: Show wakeup sources stats in sysfs

2019-08-06 Thread Rafael J. Wysocki
On Tue, Aug 6, 2019 at 8:51 PM Tri Vo wrote: > > On Mon, Aug 5, 2019 at 4:29 PM Stephen Boyd wrote: > > > > Quoting Tri Vo (2019-08-05 10:58:48) > > > diff --git a/drivers/base/power/wakeup_stats.c > > > b/drivers/base/power/wakeup_stats.c > > > new file mode 100644 > > > index

Re: [PATCH v7 3/3] PM / wakeup: Show wakeup sources stats in sysfs

2019-08-06 Thread Tri Vo
On Mon, Aug 5, 2019 at 4:29 PM Stephen Boyd wrote: > > Quoting Tri Vo (2019-08-05 10:58:48) > > diff --git a/drivers/base/power/wakeup_stats.c > > b/drivers/base/power/wakeup_stats.c > > new file mode 100644 > > index ..3a4f55028e27 > > --- /dev/null > > +++

Re: [PATCH v7 3/3] PM / wakeup: Show wakeup sources stats in sysfs

2019-08-05 Thread Stephen Boyd
Quoting Tri Vo (2019-08-05 10:58:48) > diff --git a/drivers/base/power/wakeup_stats.c > b/drivers/base/power/wakeup_stats.c > new file mode 100644 > index ..3a4f55028e27 > --- /dev/null > +++ b/drivers/base/power/wakeup_stats.c > @@ -0,0 +1,161 @@ [...] > +/** > + *

Re: [PATCH v7 3/3] PM / wakeup: Show wakeup sources stats in sysfs

2019-08-05 Thread Stephen Boyd
Quoting Tri Vo (2019-08-05 10:58:48) > diff --git a/drivers/base/power/wakeup_stats.c > b/drivers/base/power/wakeup_stats.c > new file mode 100644 > index ..3a4f55028e27 > --- /dev/null > +++ b/drivers/base/power/wakeup_stats.c > @@ -0,0 +1,161 @@ > +// SPDX-License-Identifier:

[PATCH v7 3/3] PM / wakeup: Show wakeup sources stats in sysfs

2019-08-05 Thread Tri Vo
Add an ID and a device pointer to 'struct wakeup_source'. Use them to to expose wakeup sources statistics in sysfs under /sys/class/wakeup/wakeup/*. Co-developed-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman Co-developed-by: Stephen Boyd Signed-off-by: Stephen Boyd Signed-off-by: