lkml.org 
[lkml]   [2014]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RESEND v2 02/10] power: charger-manager: Use power_supply_changed() not private uevent.
> 
> Whenever battery status is changed, charger manager tries to trigger uevent
> through private interface. This patch modifies it to use power_supply_changed()
> since it belongs to power supply subsystem.
>
> Signed-off-by: Jonghwa Lee <jonghwa3.lee@samsung.com>

The original uevent_notify() has two additional mechanisms:
C1. Save events in suspend-again context and show them up at wakeup.
C2. If the new event is a duplicated event, ignore it.

Questions:
Q1. Have you checked if C1 is met with the modification? Besides, have
you made it sure that the modification won't change the behavior of
suspend-again context? (whether "theoretical" or "experimental")
Q2. Do you still support C2?
For example, if we have notifited the user that we are charging
30 seconds ago, we should never bother the user with another message
that declares that it is charging unless we have notified that
we are not charging since then.

Cheers,
MyungJoo.

> ---
> drivers/power/charger-manager.c | 91 +++++----------------------------------
> 1 file changed, 11 insertions(+), 80 deletions(-)
>
\
 
 \ /
  Last update: 2014-12-19 09:21    [W:0.043 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site