summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2013-09-25 18:41:15 -0700
committerMarek Vasut <marex@denx.de>2013-10-20 23:42:40 +0200
commitb065eb7fd7f9c7364dbfc117ed4705f4dd932474 (patch)
tree083a909eda6d76223f1def10122a461c977b8796
parent01773ccc0d8d421935dd6ee51b222221a87620ad (diff)
downloadu-boot-imx-b065eb7fd7f9c7364dbfc117ed4705f4dd932474.zip
u-boot-imx-b065eb7fd7f9c7364dbfc117ed4705f4dd932474.tar.gz
u-boot-imx-b065eb7fd7f9c7364dbfc117ed4705f4dd932474.tar.bz2
usb: gadget: mv_udc: clear desc upon ep_disable
desc is set at ep_enable, so for symmetry, clear it at ep_disable. Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
-rw-r--r--drivers/usb/gadget/mv_udc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c
index f91af7e..c64d597 100644
--- 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;
}