On 9/27/18 6:32 PM, H. Nikolaus Schaller wrote:
Am 27.09.2018 um 16:52 schrieb H. Nikolaus Schaller hns@goldelico.com:
Hi, the driver was unreliable to detect usb unplug and plug and (re)start charging.
So I did improve it in several areas:
Attached is the full source file if you want to give it a try. It should work with 4.14 to 4.18 as well (I am not aware of API dependencies).
I've packaged a kernel modified with this as linux-image-4.18.4-letux-lpae-pyra-charge on the pyraos repo.
Since my prototype wouldn't charge at all with a 4.18 kernel before, it now seems to at least pull in 0.4A.