Re: [RFC] Limiting charge current on Droid 4 (and N900)

From: Tony Lindgren
Date: Thu Aug 20 2020 - 00:14:49 EST


* Tony Lindgren <tony@xxxxxxxxxxx> [200629 18:46]:
> * Pavel Machek <pavel@xxxxxx> [200615 07:06]:
> > Hi!
> >
> > Droid 4 has same problem as N900: it is often neccessary to manually
> > tweak current draw from USB, for example when using thin charging cable.
> >
> > N900 creates unique attribute by hand, but I believe
> > POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT looks suitable. (Should N900 be
> > converted?)
> >
> > Comments? Would the patch be acceptable after fixing whitespace?
>
> Looks OK to me. Until we have better charger vs host vs usb3 charging hub
> detection in place this seems like a good thing to do.

FYI, I'm cleaning up the pending charger and battery patches to send out
for review. So that includes my earlier RFC battery status patches, and
Spinal's additions, and this patch. It will likely be several days before
I have the series ready for posting though.

Regards,

Tony