twl4030_charger: reduce usb charge current further
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 23 Dec 2016 23:56:23 +0000 (01:56 +0200)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 23 Dec 2016 23:56:23 +0000 (01:56 +0200)
It seems 550mA is triggering overcurrent protection on my current PC.
It's interesting it only seems to happen when the battery is close
to full, but not completely, so the old value prevents "full" charging.

drivers/power/twl4030_charger.c

index 6fa762e..d8467d2 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->irq_chg = platform_get_irq(pdev, 0);
        bci->irq_bci = platform_get_irq(pdev, 1);
        bci->ac_current = 1200000; /* ~1.2A */
-       bci->usb_current = 550000; /* ~550mA */
+       bci->usb_current = 530000; /* ~530mA */
 
        /*
         * Make sure to set sane charging settings
 
        /*
         * Make sure to set sane charging settings