Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259299
b: refs/heads/master
c: deafeb2
h: refs/heads/master
i:
  259297: fe49473
  259295: 06d5cc7
v: v3
  • Loading branch information
Yoshihiro Shimoda authored and Felipe Balbi committed Jul 8, 2011
1 parent f27de1b commit 9e1cfe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 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: 5db05c09ac107ef957b7a052d7bba8190c93b460
refs/heads/master: deafeb24e8a846da8555e68f4bcf651daa8a4ed1
10 changes: 3 additions & 7 deletions trunk/drivers/usb/gadget/r8a66597-udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1444,6 +1444,7 @@ static int r8a66597_start(struct usb_gadget_driver *driver,
goto error;
}

init_controller(r8a66597);
r8a66597_bset(r8a66597, VBSE, INTENB0);
if (r8a66597_read(r8a66597, INTSTS0) & VBSTS) {
r8a66597_start_xclock(r8a66597);
Expand Down Expand Up @@ -1474,15 +1475,12 @@ static int r8a66597_stop(struct usb_gadget_driver *driver)
spin_lock_irqsave(&r8a66597->lock, flags);
if (r8a66597->gadget.speed != USB_SPEED_UNKNOWN)
r8a66597_usb_disconnect(r8a66597);
spin_unlock_irqrestore(&r8a66597->lock, flags);

r8a66597_bclr(r8a66597, VBSE, INTENB0);
disable_controller(r8a66597);
spin_unlock_irqrestore(&r8a66597->lock, flags);

driver->unbind(&r8a66597->gadget);

init_controller(r8a66597);
disable_controller(r8a66597);

device_del(&r8a66597->gadget.dev);
r8a66597->driver = NULL;
return 0;
Expand Down Expand Up @@ -1646,8 +1644,6 @@ static int __init r8a66597_probe(struct platform_device *pdev)
goto clean_up3;
r8a66597->ep0_req->complete = nop_completion;

init_controller(r8a66597);

ret = usb_add_gadget_udc(&pdev->dev, &r8a66597->gadget);
if (ret)
goto err_add_udc;
Expand Down

0 comments on commit 9e1cfe1

Please sign in to comment.