[PATCH 0/3] PMU and Battery interaction in regard to kobject uevent

Werner Almesberger werner at openmoko.org
Wed Jun 4 16:51:05 CEST 2008

Holger Freyther wrote:
> For one battery we want to immediately know when its charging state is 
> changing or might have changed (the other option would be to do even more 
> polling).

Naw, no polling, just separate events for separate things, e.g.,

- charger N inserted
- charger M removed
- battery X started charging
- battery Y is full now
- battery Z has caught fire

It's probably also a lot easier to debug the state machine that
disambiguates the various events in user space, e.g., you may well
get a "battery is full" event moments after the charger has been

> welcome back

Thanks ;-)

- Werner

More information about the openmoko-kernel mailing list