summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorPeter Chen <peter.chen@freescale.com>2015-02-05 16:38:52 +0800
committerPeter Chen <peter.chen@freescale.com>2015-02-06 13:09:12 +0800
commit65ac8d996c21d2f1febc5493f4d5ae3892097c06 (patch)
tree1921c6c0806269a7baec32a36aa2b19a6cda8363 /drivers/power
parenta15acf7650319a9313192f2bf5719d7f48d18af3 (diff)
MLK-10218-1 charger: imx6_usb: change detection timeout to 500ms
With IC engineer confirmation, 500ms is enough to detect whether it is a standard USB connection or not. Decrease the timeout value can reduce the system suspending time if it is not a standard USB connection. Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/imx6_usb_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/imx6_usb_charger.c b/drivers/power/imx6_usb_charger.c
index 7ec8ace6dcfc..1587c6a9c25c 100644
--- a/drivers/power/imx6_usb_charger.c
+++ b/drivers/power/imx6_usb_charger.c
@@ -107,7 +107,7 @@ static int imx6_usb_charger_detect(struct usb_charger *charger)
usleep_range(5000, 10000);
} else {
data_pin_contact_count = 0;
- msleep(20);
+ usleep_range(5000, 6000);
}
}