projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4651fcf
)
usb: gadget: omap_udc: set value for common is_selfpowered
author
Peter Chen
<peter.chen@freescale.com>
Wed, 28 Jan 2015 08:32:33 +0000
(16:32 +0800)
committer
Felipe Balbi
<balbi@ti.com>
Thu, 29 Jan 2015 16:35:04 +0000
(10:35 -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/omap_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/omap_udc.c
b/drivers/usb/gadget/udc/omap_udc.c
index 288c087220a87e729e866d459fc4f8073c32fc0e..e2fcdb8e55961fa3fee8093f55566e6271d41be1 100644
(file)
--- a/
drivers/usb/gadget/udc/omap_udc.c
+++ b/
drivers/usb/gadget/udc/omap_udc.c
@@
-1171,6
+1171,7
@@
omap_set_selfpowered(struct usb_gadget *gadget, int is_selfpowered)
unsigned long flags;
u16 syscon1;
+ gadget->is_selfpowered = (is_selfpowered != 0);
udc = container_of(gadget, struct omap_udc, gadget);
spin_lock_irqsave(&udc->lock, flags);
syscon1 = omap_readw(UDC_SYSCON1);