Hi, On Wed, May 27, 2015 at 06:34:01PM +0200, Stefan Wahren wrote: > the driver consists of multiple files in the mxs sub directory. > I linked to the main file to reduce search effort. The battery > handling incl. charging should be implemented in ddi_power_battery.c > > From my understanding it's not possible to determine where the 5V > exactly come from (either 5V wall plug or USB). The driver simply uses > the USB PHY state. Yes, but your driver does not even check, that there is 5V. It even reports AC online if neither USB nor wall charger is connected. > > While you can skip implementation of battery connection check > > you should make sure, that AC is actually connected. > > Do you refer to the right state of property > POWER_SUPPLY_PROP_ONLINE or driver probing? I'm referring to the right state. -- Sebastian
Attachment:
signature.asc
Description: Digital signature