On Tue 2019-09-17 14:52:53, Tony Lindgren wrote: > When debugging why higher than 500 mA charge current does not work, I > noticed that we start getting lots of chrgcurr1 interrupts if we attempt > to charge at rates higher than the charger can provide. > > We can take advantage of the chrgcurr1 interrupts for charger detection, > and retry charging at a lower rate if charging fails. When an acceptable > charge rate is found, the chrgcurr1 interrupts stop. Do you still see these problems with "good" charger? (Wall one, capable of providing 2A)? Note that 1A charging will decrease battery lifetime, and that phone definitely should not be charging with more than 500mA when charging from computer. I actually prefer the way it charges slowly in mainline... We'll eventually need a library or something; we don't want every driver to reinvent charging code.. Best regards, Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature