twl4030_charger: decrease USB charging current to 550mA
authorGrond <grond66@riseup.net>
Wed, 21 Dec 2016 05:18:43 +0000 (21:18 -0800)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 21 Dec 2016 23:41:57 +0000 (01:41 +0200)
At 560mA, it will cause some USB host controllers to trigger their over-current
protection failsafes, usually resulting in a total loss of power to the USB
line. Since in general, USB 2.0 ports can't be assumed to have more than 500mA
of power available on a given port, further reductions may be needed, but this
should do for now.

drivers/power/twl4030_charger.c

index 8ff3f29..6fa762e 100644 (file)
@@ -938,7 +938,7 @@ static int __init twl4030_bci_probe(struct platform_device *pdev)
        bci->irq_chg = platform_get_irq(pdev, 0);
        bci->irq_bci = platform_get_irq(pdev, 1);
        bci->ac_current = 1200000; /* ~1.2A */
-       bci->usb_current = 560000; /* ~560mA */
+       bci->usb_current = 550000; /* ~550mA */
 
        /*
         * Make sure to set sane charging settings