projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01773cc
)
usb: gadget: mv_udc: clear desc upon ep_disable
author
Troy Kisky
<troy.kisky@boundarydevices.com>
Thu, 26 Sep 2013 01:41:15 +0000
(18:41 -0700)
committer
Marek Vasut
<marex@denx.de>
Sun, 20 Oct 2013 21:42:40 +0000
(23:42 +0200)
desc is set at ep_enable, so for symmetry,
clear it at ep_disable.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
drivers/usb/gadget/mv_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/mv_udc.c
b/drivers/usb/gadget/mv_udc.c
index f91af7eb46483a5730d7f07e0d4e64e1643b9c44..c64d5970532a0a00eef3a678c48c054839131294 100644
(file)
--- a/
drivers/usb/gadget/mv_udc.c
+++ b/
drivers/usb/gadget/mv_udc.c
@@
-245,6
+245,9
@@
static int mv_ep_enable(struct usb_ep *ep,
static int mv_ep_disable(struct usb_ep *ep)
{
+ struct mv_ep *mv_ep = container_of(ep, struct mv_ep, ep);
+
+ mv_ep->desc = NULL;
return 0;
}