I've been playing around with getting the bq27x00_battery driver working in shr-core. I have a working module now, but I will need someone to hold my hand to submit a patch.

My kernel has bq27x00_battery and platform battery configured as modules and I switch which module I autoload for testing. Having them as modules seems to work fine.

I was seeing a freeze when I plugged in or unplugged the usb cable. Holding down the power button would not turn it off.

There were only 2 lines in bq27x00_external_power_changed which seemed like a likely culprit since the freeze occured when the external power supply changed. I noticed that one of the calls is made elsewhere in the file, but is protected by a mutex. Using the same mutex in bq27x00_external_power_changed seems to make it stable, though the charge LED on the gta02 seems to be confused. It lights when the cable is unplugged. I'm not sure yet if that is a userspace issue or something else is wrong in the driver. It seems like most people use this driver for bq27500 and bq27000 may have been neglected.

Ben
_______________________________________________
Shr-devel mailing list
Shr-devel@lists.shr-project.org
http://lists.shr-project.org/mailman/listinfo/shr-devel

Reply via email to