On Tuesday 03 June 2008 16:21:03 you wrote: > Holger Freyther wrote: > > Now to the issue: > > - The battery code has the kobject but does not know about the pmu > > - The pmu knows about plugging but doesn't have the kobject. > > At the risk of sounding incredibly stupid - do they *need* to know > of each other ?
Well, I might look at this from another way. In userspace we have /sys/class/power/*/ to get information about the available batteries. 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). And according to my understanding this is what the uevent file in sysfs for the battery is for. I have decided to follow andy's comment and will make mach-gta02 and bq27000 talk to each other to do this update. A patch should be on the way soon(tm). welcome back z.
