mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-11 11:38:51 +01:00
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>
This commit is contained in:
parent
01773ccc0d
commit
b065eb7fd7
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue