Mark chromeos_tbmc as wake capable and report wake events. This helps to
abort suspend on seeing a tablet mode switch event when kernel is
suspending. This also helps identifying if chroemos_tbmc is the wake
source.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/platform/chrome
As discussed in https://lkml.org/lkml/2019/7/23/687 this patch set
creates symlink from device node to wakeup_source virtual device. This
patch set also updates the documentation accordingly.
Ravi Chandra Sadineni (2):
power: sysfs: Add link to wakeup class device.
power: sysfs: move wakeup
o the corresponding wakeup_source device under wakeup
class.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/base/power/power.h | 2 ++
drivers/base/power/sysfs.c | 25 +
drivers/base/power/wakeup.c | 2 ++
3 files changed, 29 insertions(+)
diff --git a/drivers/base/
As we have a new wakeup_source sub directory under power/ that
exposes all the wakeup_source related attributes, move the
documentation pointing to the existing attributes directly
under power/ directory to obselete.
Signed-off-by: Ravi Chandra Sadineni
---
Documentation/ABI/obsolete/sysfs
Thanks Rafael. I will abandon this patch set and try to create a
symlink as you suggested.
Thanks,
Ravi
On Tue, Jul 23, 2019 at 10:02 AM Rafael J. Wysocki wrote:
>
> On Tue, Jul 23, 2019 at 6:57 PM Ravi Chandra Sadineni
> wrote:
> >
> > Hi Greg,
> >
> > h
ul 23, 2019 at 12:44 AM Rafael J. Wysocki wrote:
>
> On Tue, Jul 23, 2019 at 12:33 AM Ravi Chandra Sadineni
> wrote:
> >
> > wakeup_abort_count and wakeup_count attributes print the
> > same (wakeup_count) variable. Thus this patchset removes the
> > duplicate wa
Hi Greg,
On Mon, Jul 22, 2019 at 11:22 AM Greg KH wrote:
>
> On Mon, Jul 22, 2019 at 11:02:58AM -0700, Ravi Chandra Sadineni wrote:
> > Device level event_count can help user level daemon to track if a
> > praticular device has seen an wake interrupt during a suspend resu
wakeup_abort_count and wakeup_count sysfs entries print the
same (wakeup_count) attribute. This patch removes the duplicate
wakeup_abort_count sysfs entry.
Signed-off-by: Ravi Chandra Sadineni
---
Documentation/ABI/testing/sysfs-devices-power | 25 ++-
drivers/base/power/sysfs.c
wakeup_abort_count and wakeup_count attributes print the
same (wakeup_count) variable. Thus this patchset removes the
duplicate wakeup_abort_count sysfs attribute. This patchset also
exposes event_count as a sysfs attribute.
Ravi Chandra Sadineni (2):
power: sysfs: Remove wakeup_abort_count
Device level event_count can help user level daemon to track if a
praticular device has seen an wake interrupt during a suspend resume
cycle. Thus expose it via sysfs.
Signed-off-by: Ravi Chandra Sadineni
---
V2: Address comments from patchset 1.
Documentation/ABI/testing/sysfs-devices-power
Device level event_count can help user level daemon to track if a
praticular device has seen an wake interrupt during a suspend resume
cycle. Thus expose it via sysfs.
Signed-off-by: Ravi Chandra Sadineni
---
Documentation/ABI/testing/sysfs-devices-power | 11 ++
drivers/base/power
wakeup_abort_count and wakeup_count sysfs entries print the
same (wakeup_count) attribute. This patch removes the duplicate
wakeup_abort_count sysfs entry.
Signed-off-by: Ravi Chandra Sadineni
---
Documentation/ABI/testing/sysfs-devices-power | 25 ++-
drivers/base/power/sysfs.c
Hi,
Just wanted to check if this is o.k.
Thanks,
Ravi
On Wed, Jun 19, 2019 at 10:52 AM Ravi Chandra Sadineni
wrote:
>
> events_check_enabled bool is set when wakeup_count sysfs attribute
> is written. User level daemon is expected to write this attribute
> just before suspend.
&
get to execute, wakeup count will not be incremented. Thus
let us not reset the bool here.
Note that events_check_enabled is also cleared in suspend.c/enter_state()
on every resume at the end.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/base/power/wakeup.c | 1 -
1 file changed, 1 deletion
Hi,
Just wanted to check if this o.k.
Thanks,
Ravi
On Thu, Jun 6, 2019 at 5:37 PM Ravi Chandra Sadineni
wrote:
>
> events_check_enabled bool is set when wakeup_count sysfs attribute
> is written. User level daemon is expected to write this attribute
> just before suspend.
>
>
get to execute, wakeup count will not be incremented. Thus
let us not reset the bool here.
Note that events_check_enabled is also cleared in suspend.c/enter_state()
on every resume at the end.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/base/power/wakeup.c | 1 -
1 file changed, 1 deletion
Hi Dmitry,
On Mon, May 13, 2019 at 4:29 PM Dmitry Torokhov
wrote:
>
> Hi Ravi,
>
> On Mon, May 13, 2019 at 3:06 PM Ravi Chandra Sadineni
> wrote:
> >
> > Notify the PM core that this dev is the wake source. This helps
> > userspace daemon tracking the wake sou
Notify the PM core that this dev is the wake source. This helps
userspace daemon tracking the wake source to identify the origin of the
wake.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/input/mouse/elan_i2c_core.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/input/mouse
what you want. Ideally I'd like to see visible the
> attribute only on those ECs that support that feature. Is this command
> associated with an EC feature?
Yes with EC_FEATURE_BATTERY. Now checking if EC supports EC_FEATURE_BATTERY.
>
> If that's not possible I can assum
C exposes more attributes, it will not be that
difficult to add support here.
>
> On Mon, Mar 4, 2019 at 5:00 PM Ravi Chandra Sadineni
> wrote:
>>
>> Hi Guenter,
>>
>> On Sun, Mar 3, 2019 at 5:13 PM Guenter Roeck wrote:
>> >
>> > On Sun, Mar 3,
> b/Documentation/ABI/testing/sysfs-class-chromeos
>> new file mode 100644
>> index ..44d3cee6e7ae
>> --- /dev/null
>> +++ b/Documentation/ABI/testing/sysfs-class-chromeos
>> @@ -0,0 +1,8 @@
>> +What: /sys/class/chromeos/cros_ec/cutoff_at
Hi Guenter,
On Fri, Mar 1, 2019 at 1:00 PM Guenter Roeck wrote:
>
> On Fri, Mar 1, 2019 at 11:22 AM RaviChandra Sadineni
> wrote:
>>
>> On chromebooks, power_manager daemon normally shutsdown(S5) the device
>> when the battery charge falls below 4% threshold. ChromeOS EC then
>> normally spends
hi Merek,
I tried booting a snow device and could not get it to boot it to the
console. I assume i don't have right kernel config. Can you share your
config if possible.
Thanks,
RaviOn Mon, Aug 6, 2018 at 4:05 PM Ravi Chandra Sadineni
wrote:
>
> Hi Merek,
>
> Thanks fo
:29 PM Marek Szyprowski
> > wrote:
> >> Hi Ravi,
> >>
> >> On 2018-08-03 18:53, Ravi Chandra Sadineni wrote:
> >>> Understood. I am trying to reproduce this issue locally. Wanted to
> >>> know the version of the kernel so I can give a try. M
Understood. I am trying to reproduce this issue locally. Wanted to know the
version of the kernel so I can give a try. Marek, can you please confirm
the kernel version.
Thanks,
On Fri, Aug 3, 2018 at 9:08 AM Dmitry Torokhov
wrote:
> On Fri, Aug 3, 2018 at 8:51 AM Ravi Chandra Sadin
i Chandra Sadineni wrote:
> > Remove the unnecessary check before calling pm_wakeup_event. If the
> > device is not wake enabled, this call is no-op anyway.
> >
> > Signed-off-by: Ravi Chandra Sadineni
>
> This patch breaks suspend/resume on Samsung Exynos5250 Snow Ch
avior confuses user space deamons using
wakeup_count to identify the potential system wakeup source. To avoid
the confusion, only trigger acpi_pm_wakeup_event() in the
acpi_button_notify() path and don't do that in the
acpi_lid_initialize_state() path.
Signed-off-by: Ravi Chandra Sadineni
---
v
Hi Rafael,
Hopefully this will clear things a bit.
1. Why is this patch needed ?
Consider the following scenario.
1. User left the device idle for some time.
2. A deamon in the userland that controls suspend policy might
suspend the device. The lid is still open.
3. Now the use
only when there is a FIXED_HARDWARE/NOTFIY_STATUS event.
Signed-off-by: Ravi Chandra Sadineni
---
V2: Increment the wakeup count only when the lid is open.
drivers/acpi/button.c | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/drivers/acpi/button.c b/drivers
Hi Rafeal,
Soft ping. Is this patch good to be merged ?
Thanks,
Ravi
On Sun, Jun 3, 2018 at 10:14 AM, Ravi Chandra Sadineni
wrote:
> Hi Rafael,
>
> On Sun, Jun 3, 2018 at 1:05 AM, Rafael J. Wysocki wrote:
>> On Sat, Jun 2, 2018 at 4:32 AM, Ravi Chandra Sadineni
>> wr
Remove the unnecessary check before calling pm_wakeup_event. If the
device is not wake enabled, this call is no-op anyway.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/input/keyboard/cros_ec_keyb.c | 30 ++-
1 file changed, 11 insertions(+), 19 deletions(-)
diff
On Tue, Jun 5, 2018 at 2:14 AM, Rafael J. Wysocki wrote:
> On Mon, Jun 4, 2018 at 11:53 PM, Dmitry Torokhov
> wrote:
>> On Fri, Jun 01, 2018 at 06:07:08PM -0700, Ravi Chandra Sadineni wrote:
>>> Call pm_wakeup_event on every irq. This should help us in identifying if
>>
Call pm_wakeup_event on every irq. This should help us in identifying if
keyboard was a potential wake reason for the last resume.
Signed-off-by: Ravi Chandra Sadineni
---
V3: Remove the unnecessary device_may_wakeup check.
V2: Increment the wakeup count only when there is a irq and not when the
only when there is a FIXED_HARDWARE/NOTFIY_STATUS event.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/acpi/button.c | 5 +
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
index f1cc4f9d31cd9..d40fef7241f08 100644
--- a/drivers
Hi Rafael,
On Sun, Jun 3, 2018 at 1:05 AM, Rafael J. Wysocki wrote:
> On Sat, Jun 2, 2018 at 4:32 AM, Ravi Chandra Sadineni
> wrote:
>> Currently we show event_count instead of wakeup_count as part of per
>> device wakeup_count sysfs attribute. Change it to wakeup_count
Currently we show event_count instead of wakeup_count as part of per
device wakeup_count sysfs attribute. Change it to wakeup_count to make
it more meaningful.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/base/power/sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a
Call pm_wakeup_event on every irq. This should help us in identifying if
keyboard was a potential wake reason for the last resume.
Signed-off-by: Ravi Chandra Sadineni
---
V2: Increment the wakeup count only when there is a irq and not when the
method is called internally.
drivers/input/serio
Call pm_wakeup_event on every irq. This should help us in identifying if
i8042 port was a potential wake reason for the last resume.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/input/serio/i8042.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/input/serio/i8042.c b/drivers
Mark cros_ec_keyb has wake enabled by default. If we see a MKBP event
related to keyboard, call pm_wakeup_event() to make sure wakeup
triggers are accounted to keyb during suspend resume path.
Signed-off-by: Ravi Chandra Sadineni
---
V2: Marked the ckdev as wake enabled instead of input devices
If the IRQ is processed during resume, increment the wakeup count to the
specific mfd device based on the event, if the mfd device is wake enabled.
This helps in identifying the specific device that caused the wake.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/input/keyboard/cros_ec_keyb.c
Sure. Pushing it to the older kernels will definitely help.
Thanks,
Ravi
On Sat, Apr 21, 2018 at 1:59 AM, Greg KH wrote:
> On Fri, Apr 20, 2018 at 11:08:21AM -0700, Ravi Chandra Sadineni wrote:
>> On chromebooks we depend on wakeup count to identify the wakeup source.
>> Bu
On Fri, Apr 20, 2018 at 10:29 AM, Alan Stern wrote:
> On Fri, 20 Apr 2018, Ravi Chandra Sadineni wrote:
>
>> On chromebooks we depend on wakeup count to identify the wakeup source.
>> But currently USB devices do not increment the wakeup count when they
>> trigger the
Notification to the host (USB3.0
spec section 8.5.6.4) Thus on receiving the Function Wake, increment the
wakeup count.
Signed-off-by: Ravi Chandra Sadineni
---
V5: Added the description of changes between different versions of patches.
V4: Moved the wakeup count increment logic to the existing if which is
Notification to the host (USB3.0
spec section 8.5.6.4) Thus on receiving the Function Wake, increment the
wakeup count.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/usb/core/hcd.c | 1 +
drivers/usb/core/hub.c | 10 +-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/drivers/usb
On Fri, Apr 20, 2018 at 7:12 AM, Alan Stern wrote:
> On Thu, 19 Apr 2018, Ravi Chandra Sadineni wrote:
>
>> On chromebooks we depend on wakeup count to identify the wakeup source.
>> But currently USB devices do not increment the wakeup count when they
>> trigger the
Notification to the host (USB3.0
spec section 8.5.6.4) Thus on receiving the Function Wake, increment the
wakeup count.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/usb/core/hcd.c | 2 ++
drivers/usb/core/hub.c | 10 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/usb
Hi Alan,
Thanks for reviewing the change. Appreciate your time. I tried to
address your comments in the V2 of the patch.
On Thu, Apr 19, 2018 at 8:01 AM, Alan Stern wrote:
> On Wed, 18 Apr 2018, Ravi Chandra Sadineni wrote:
>
>> On chromebooks we depend on wakeup count to identif
Notification to the host (USB3.0
spec section 8.5.6.4) Thus on receiving the Function Wake, increment the
wakeup count.
Signed-off-by: Ravi Chandra Sadineni
---
drivers/usb/core/hcd.c | 2 ++
drivers/usb/core/hub.c | 10 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/drivers/usb
On chromebooks we depend on wakeup count to identify the wakeup source.
But currently USB devices do not increment the wakeup count when they
trigger the remote wake. This patch addresses the same.
Resume condition is reported differently on USB 2.0 and USB 3.0 devices.
On USB 2.0 devices, a wake
49 matches
Mail list logo