Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348668
b: refs/heads/master
c: d9fa298
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Felipe Balbi committed Dec 13, 2012
1 parent 3b7e0f0 commit 65cfd22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 69f5165ebef1d90bd58e9ce5db018218ea4d089c
refs/heads/master: d9fa298f215e050dbb28a6f75fe76459ebd2e7f0
11 changes: 8 additions & 3 deletions trunk/drivers/usb/renesas_usbhs/mod_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,12 @@ static int usbhsg_ep_disable(struct usb_ep *ep)
{
struct usbhsg_uep *uep = usbhsg_ep_to_uep(ep);

return usbhsg_pipe_disable(uep);
usbhsg_pipe_disable(uep);

uep->pipe->mod_private = NULL;
uep->pipe = NULL;

return 0;
}

static struct usb_request *usbhsg_ep_alloc_request(struct usb_ep *ep,
Expand Down Expand Up @@ -753,7 +758,7 @@ static int usbhsg_try_start(struct usbhs_priv *priv, u32 status)
usbhsg_dma_map_ctrl);
usbhs_fifo_init(priv);

/* dcp init */
/* dcp init instead of usbhsg_ep_enable() */
dcp->pipe = usbhs_dcp_malloc(priv);
dcp->pipe->mod_private = dcp;
usbhs_pipe_config_update(dcp->pipe, 0, 0, 64);
Expand Down Expand Up @@ -815,7 +820,7 @@ static int usbhsg_try_stop(struct usbhs_priv *priv, u32 status)
usbhs_sys_set_test_mode(priv, 0);
usbhs_sys_function_ctrl(priv, 0);

usbhsg_pipe_disable(dcp);
usbhsg_ep_disable(&dcp->ep);

dev_dbg(dev, "stop gadget\n");

Expand Down

0 comments on commit 65cfd22

Please sign in to comment.