From: Grond Date: Wed, 21 Dec 2016 05:18:43 +0000 (-0800) Subject: twl4030_charger: decrease USB charging current to 550mA X-Git-Tag: sz_176~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80610d751bb1e09d882812fe5900c749c107ba6c;p=pandora-kernel.git twl4030_charger: decrease USB charging current to 550mA 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. --- diff --git a/drivers/power/twl4030_charger.c b/drivers/power/twl4030_charger.c index 8ff3f2908306..6fa762eee337 100644 --- a/drivers/power/twl4030_charger.c +++ b/drivers/power/twl4030_charger.c @@ -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