diff options
author | Peter Chen <peter.chen@freescale.com> | 2015-02-05 16:38:52 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2015-02-06 15:21:38 +0800 |
commit | 16121ef8e473a4ce71accca59b006575312028e2 (patch) | |
tree | e4760eba0e13623a6e57abe7c073e76ffd6796a1 /drivers | |
parent | c5cbaef78e8c235f488e69f007d89d36ac333754 (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')
-rw-r--r-- | drivers/power/imx6_usb_charger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/imx6_usb_charger.c b/drivers/power/imx6_usb_charger.c index 52c90a8ec206..1587c6a9c25c 100644 --- a/drivers/power/imx6_usb_charger.c +++ b/drivers/power/imx6_usb_charger.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013-2014 Freescale Semiconductor, Inc. All Rights Reserved. + * Copyright (C) 2013-2015 Freescale Semiconductor, Inc. All Rights Reserved. * * The code contained herein is licensed under the GNU General Public * License. You may obtain a copy of the GNU General Public License @@ -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); } } |