usb: bc: fix usb charger type detect error in rapidly hotplug
authorlyz <lyz@rock-chips.com>
Thu, 21 May 2015 02:15:00 +0000 (10:15 +0800)
committerlyz <lyz@rock-chips.com>
Thu, 11 Jun 2015 06:02:58 +0000 (14:02 +0800)
commitab1ac5a5b9537674546a06611400146a72a60b34
treef9f590ab2bde925b1c08e550009b162a3e88905b
parent112cd27141ab2d0d1b35b24b3ad8f7ba200276d9
usb: bc: fix usb charger type detect error in rapidly hotplug
case for inno phy

In device mode, when doing usb plug and unplug rapidly, there
might be some problem with usb battery charger type detect,
caused by line bounces and other connect problems, at this case,
usb battery charger detect module prefer to report a battery
cherger type that draw less current to make it saver for PMIC and
downstream port safer.

Signed-off-by: lyz <lyz@rock-chips.com>
drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c
drivers/usb/dwc_otg_310/usbdev_bc.c