gadget.c (1b59fc7e3cda3f626204cadda8bb9b7d15f4f55b) gadget.c (304f7e5e1d08fa2f5674c1323bd0ebd806c86b81)
1/**
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Copyright 2008 Openmoko, Inc.
6 * Copyright 2008 Simtec Electronics
7 * Ben Dooks <ben@simtec.co.uk>
8 * http://armlinux.simtec.co.uk/

--- 990 unchanged lines hidden (view full) ---

999 /*
1000 * If we have request in progress,
1001 * then complete it
1002 */
1003 if (ep->req) {
1004 hs_req = ep->req;
1005 ep->req = NULL;
1006 list_del_init(&hs_req->queue);
1/**
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3 * http://www.samsung.com
4 *
5 * Copyright 2008 Openmoko, Inc.
6 * Copyright 2008 Simtec Electronics
7 * Ben Dooks <ben@simtec.co.uk>
8 * http://armlinux.simtec.co.uk/

--- 990 unchanged lines hidden (view full) ---

999 /*
1000 * If we have request in progress,
1001 * then complete it
1002 */
1003 if (ep->req) {
1004 hs_req = ep->req;
1005 ep->req = NULL;
1006 list_del_init(&hs_req->queue);
1007 hs_req->req.complete(&ep->ep,
1008 &hs_req->req);
1007 usb_gadget_giveback_request(&ep->ep,
1008 &hs_req->req);
1009 }
1010
1011 /* If we have pending request, then start it */
1012 restart = !list_empty(&ep->queue);
1013 if (restart) {
1014 hs_req = get_ep_head(ep);
1015 s3c_hsotg_start_req(hsotg, ep,
1016 hs_req, false);

--- 240 unchanged lines hidden (view full) ---

1257
1258 /*
1259 * call the complete request with the locks off, just in case the
1260 * request tries to queue more work for this endpoint.
1261 */
1262
1263 if (hs_req->req.complete) {
1264 spin_unlock(&hsotg->lock);
1009 }
1010
1011 /* If we have pending request, then start it */
1012 restart = !list_empty(&ep->queue);
1013 if (restart) {
1014 hs_req = get_ep_head(ep);
1015 s3c_hsotg_start_req(hsotg, ep,
1016 hs_req, false);

--- 240 unchanged lines hidden (view full) ---

1257
1258 /*
1259 * call the complete request with the locks off, just in case the
1260 * request tries to queue more work for this endpoint.
1261 */
1262
1263 if (hs_req->req.complete) {
1264 spin_unlock(&hsotg->lock);
1265 hs_req->req.complete(&hs_ep->ep, &hs_req->req);
1265 usb_gadget_giveback_request(&hs_ep->ep, &hs_req->req);
1266 spin_lock(&hsotg->lock);
1267 }
1268
1269 /*
1270 * Look to see if there is anything else to do. Note, the completion
1271 * of the previous request may have caused a new request to be started
1272 * so be careful when doing this.
1273 */

--- 2428 unchanged lines hidden ---
1266 spin_lock(&hsotg->lock);
1267 }
1268
1269 /*
1270 * Look to see if there is anything else to do. Note, the completion
1271 * of the previous request may have caused a new request to be started
1272 * so be careful when doing this.
1273 */

--- 2428 unchanged lines hidden ---