From ee0a272565d8a0d742a0fc726b82bf9bf992a4c1 Mon Sep 17 00:00:00 2001 From: lyz Date: Fri, 26 Dec 2014 20:02:21 +0800 Subject: [PATCH] usb: dwc_otg: fix usb battery charger detect bug For we don't use charge display function in 3.10 kernel, when android write 0 to /sys/class/android_usb/android0/enable no need to set pcd->conn_status = 2 and gating usb clocks. Signed-off-by: lyz --- drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c b/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c index b5c73a0ffdf2..3ee983b9b18c 100755 --- a/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c +++ b/drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c @@ -746,7 +746,7 @@ static int dwc_otg_pcd_pullup(struct usb_gadget *_gadget, int is_on) pcd->conn_status = 0; } else { dwc_otg_pcd_pullup_disable(pcd); - pcd->conn_status = 2; + pcd->conn_en = 0; } return 0; -- 2.34.1