dbgp.c (4ba24fef3eb3b142197135223b90ced2f319cd53) dbgp.c (c94e289f195e0e13cf34d27f9338d28221a85751)
1/*
2 * dbgp.c -- EHCI Debug Port device gadget
3 *
4 * Copyright (C) 2010 Stephane Duverger
5 *
6 * Released under the GPLv2.
7 */
8

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

279
280fail_2:
281 dbgp.i_ep->driver_data = NULL;
282fail_1:
283 dev_dbg(&dbgp.gadget->dev, "ep config: failure (%d)\n", stp);
284 return -ENODEV;
285}
286
1/*
2 * dbgp.c -- EHCI Debug Port device gadget
3 *
4 * Copyright (C) 2010 Stephane Duverger
5 *
6 * Released under the GPLv2.
7 */
8

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

279
280fail_2:
281 dbgp.i_ep->driver_data = NULL;
282fail_1:
283 dev_dbg(&dbgp.gadget->dev, "ep config: failure (%d)\n", stp);
284 return -ENODEV;
285}
286
287static int __init dbgp_bind(struct usb_gadget *gadget,
287static int dbgp_bind(struct usb_gadget *gadget,
288 struct usb_gadget_driver *driver)
289{
290 int err, stp;
291
292 dbgp.gadget = gadget;
293
294 dbgp.req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
295 if (!dbgp.req) {

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

401 return usb_ep_queue(gadget->ep0, req, GFP_ATOMIC);
402
403fail:
404 dev_dbg(&dbgp.gadget->dev,
405 "setup: failure req %x v %x\n", request, value);
406 return err;
407}
408
288 struct usb_gadget_driver *driver)
289{
290 int err, stp;
291
292 dbgp.gadget = gadget;
293
294 dbgp.req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
295 if (!dbgp.req) {

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

401 return usb_ep_queue(gadget->ep0, req, GFP_ATOMIC);
402
403fail:
404 dev_dbg(&dbgp.gadget->dev,
405 "setup: failure req %x v %x\n", request, value);
406 return err;
407}
408
409static __refdata struct usb_gadget_driver dbgp_driver = {
409static struct usb_gadget_driver dbgp_driver = {
410 .function = "dbgp",
411 .max_speed = USB_SPEED_HIGH,
412 .bind = dbgp_bind,
413 .unbind = dbgp_unbind,
414 .setup = dbgp_setup,
415 .reset = dbgp_disconnect,
416 .disconnect = dbgp_disconnect,
417 .driver = {

--- 22 unchanged lines hidden ---
410 .function = "dbgp",
411 .max_speed = USB_SPEED_HIGH,
412 .bind = dbgp_bind,
413 .unbind = dbgp_unbind,
414 .setup = dbgp_setup,
415 .reset = dbgp_disconnect,
416 .disconnect = dbgp_disconnect,
417 .driver = {

--- 22 unchanged lines hidden ---