projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a17fd41
)
usb: gadget: bdc_udc: set value for common is_selfpowered
author
Peter Chen
<peter.chen@freescale.com>
Wed, 28 Jan 2015 08:32:29 +0000
(16:32 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Thu, 29 Jan 2015 16:32:54 +0000
(10:32 -0600)
Set value for common is_selfpowered.
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/bdc/bdc_udc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/bdc/bdc_udc.c
b/drivers/usb/gadget/udc/bdc/bdc_udc.c
index 3700ce70b0bef98637ac2942b87defa0dd075f8a..7f77db5d12789fce8a012bb0b3048f1a9c82558f 100644
(file)
--- a/
drivers/usb/gadget/udc/bdc/bdc_udc.c
+++ b/
drivers/usb/gadget/udc/bdc/bdc_udc.c
@@
-454,6
+454,7
@@
static int bdc_udc_set_selfpowered(struct usb_gadget *gadget,
unsigned long flags;
dev_dbg(bdc->dev, "%s()\n", __func__);
+ gadget->is_selfpowered = (is_self != 0);
spin_lock_irqsave(&bdc->lock, flags);
if (!is_self)
bdc->devstatus |= 1 << USB_DEVICE_SELF_POWERED;