projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
686ec54
)
usb: dwc_otg: fix usb battery charger detect bug
author
lyz
<lyz@rock-chips.com>
Fri, 26 Dec 2014 12:02:21 +0000
(20:02 +0800)
committer
lyz
<lyz@rock-chips.com>
Sun, 4 Jan 2015 08:58:39 +0000
(16:58 +0800)
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 <lyz@rock-chips.com>
drivers/usb/dwc_otg_310/dwc_otg_pcd_linux.c
patch
|
blob
|
history
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 b5c73a0ffdf217760d154818252d9c41e7f81015..3ee983b9b18cd98dba277a3de917213dae615d19 100755
(executable)
--- 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;