bq2415x_charger: Use power_supply notifier for automode
Quoted 8 lines
-------- Оригинално писмо --------
От: Pavel Machek
Относно: Re: [PATCH v2 2/3]bq2415x_charger: Usepower_supplynotifier for
automode
Quoted 26 lines
До: Pali Rohár
Изпратено на: Понеделник, 2013, Ноември 25 17:18:39 EETQuoted 10 lines · Pali Rohár
Quoted 2 lines · On Monday 25 November 2013 15:01:27 Pavel Machek wrote:
Where can I get dsme sources?
Paveldsme daemon: https://gitorious.org/community-ssu/dsme
dsme thermal plugin: https://gitorious.org/rx51-bme-replacement/dsme-thermalobject-surfacedsme thermal plugin is responsible for checking temperature of battery and send it to dsme damon. dsme daemon itself checking temperature limits and do something (e.g reboot device)
Thanks for links!
AFAICT.... dsme daemon does some kind of system management, not directly controlling charging, right? It does monitor system temperature.
Now.. Imagine phone left in car in charger (on sun). Likely temperature will reach high values, kernel is charging, dsme will reboot the system, but kernel will start charging again, dsme will reboot again, ...
Quoted 12 lines
And it is not only high temperatures that are problem for li-ion charging; battery should not be fast charged below 5C and should not be charged below 0C. (Again, both are likely to happen if you leave your phone in car).
AFAICT, we should simply disable charging below 5C or above 45C.
Pavel
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
AFAIK dsme will not restart it, but power it off, so the above scenario won't happen.
Regards,
Ivo
Quoted 10 lines · Ивайло Димитров
Quoted 10 lines
Now.. Imagine phone left in car in charger (on sun). Likely temperature will reach high values, kernel is charging, dsme will reboot the system, but kernel will start charging again, dsme will reboot again, ...
And it is not only high temperatures that are problem for li-ion charging; battery should not be fast charged below 5C and should not be charged below 0C. (Again, both are likely to happen if you leave your phone in car).
Quoted 4 lines
Quoted 1 line
AFAICT, we should simply disable charging below 5C or above 45C.
AFAIK dsme will not restart it, but power it off, so the above scenario won't happen.
Just assume what happens, when dsme does not start (e.g. system boot hangs).
If everything is controlled from userspace, charger would not start (-> safe!). If everything is controlled by the kernel, temperature safety checks are taken (-> safe!). But in the currently proposed
variant: No safety checks.
-- Sebastian