diff options
author | Li Jun <B47624@freescale.com> | 2014-03-06 21:15:27 -0500 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:57:56 -0400 |
commit | eb5685a252b27c38505bd91ed6c5d9ed59558dd4 (patch) | |
tree | 475aeef67ecd6dbcc3d5a47dd8df1518139c3498 | |
parent | bdf22c3391a474e17e3f7e2859d050f44f6fea2b (diff) |
ENGR00302223 usb: charger: increase wait time before check CHRG_DETECTED bit
One customer reported an issue that sometimes SW cannot get right charger
detection status on their HW, that is: CHRG_DETECTED bit sometimes is still
0 after 40ms wait time, increase the wait time to be 100ms can resolve the
issue with customer's HW and usb charger. Per usb PHY IC owner's comments,
the required wait time depends on charger's cap of the charger, bigger cap
need more wait time, BC spec only define the min wait time 40mSx, not define
max wait time, so it's ok to have 100ms wait time.
Acked-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Li Jun <b47624@freescale.com>
-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 d94a30226664..81a8064f1362 100644 --- a/drivers/power/imx6_usb_charger.c +++ b/drivers/power/imx6_usb_charger.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2013 Freescale Semiconductor, Inc. All Rights Reserved. | 2 | * Copyright (C) 2013-2014 Freescale Semiconductor, Inc. All Rights Reserved. |
3 | * | 3 | * |
4 | * The code contained herein is licensed under the GNU General Public | 4 | * The code contained herein is licensed under the GNU General Public |
5 | * License. You may obtain a copy of the GNU General Public License | 5 | * License. You may obtain a copy of the GNU General Public License |
@@ -142,7 +142,7 @@ static int imx6_usb_charger_detect(struct usb_charger *charger) | |||
142 | regmap_write(regmap, HW_ANADIG_USB1_CHRG_DETECT_CLR, | 142 | regmap_write(regmap, HW_ANADIG_USB1_CHRG_DETECT_CLR, |
143 | BM_ANADIG_USB1_CHRG_DETECT_CHK_CONTACT | | 143 | BM_ANADIG_USB1_CHRG_DETECT_CHK_CONTACT | |
144 | BM_ANADIG_USB1_CHRG_DETECT_CHK_CHRG_B); | 144 | BM_ANADIG_USB1_CHRG_DETECT_CHK_CHRG_B); |
145 | msleep(45); | 145 | msleep(100); |
146 | 146 | ||
147 | /* Check if it is a charger */ | 147 | /* Check if it is a charger */ |
148 | regmap_read(regmap, HW_ANADIG_USB1_CHRG_DET_STAT, &val); | 148 | regmap_read(regmap, HW_ANADIG_USB1_CHRG_DET_STAT, &val); |