OSDN Git Service

usb: gadget: Add udc_priv member to struct usb_request
authorJack Pham <jackp@codeaurora.org>
Wed, 10 Sep 2014 09:22:17 +0000 (02:22 -0700)
committerDavid Keitel <dkeitel@codeaurora.org>
Tue, 22 Mar 2016 18:06:33 +0000 (11:06 -0700)
This member is used to store additional private flags
for BAM-enabled functions to pass information to the UDC.

Signed-off-by: Jack Pham <jackp@codeaurora.org>
include/linux/usb/gadget.h

index 63b903b..7c18c70 100644 (file)
@@ -141,6 +141,7 @@ struct gsi_channel_info {
  *     Note that for writes (IN transfers) some data bytes may still
  *     reside in a device-side FIFO when the request is reported as
  *     complete.
+ * @udc_priv: Vendor private data in usage by the UDC.
  *
  * These are allocated/freed through the endpoint they're used with.  The
  * hardware's driver can add extra per-request data to the memory it returns,
@@ -181,6 +182,7 @@ struct usb_request {
 
        int                     status;
        unsigned                actual;
+       unsigned                udc_priv;
 };
 
 /*-------------------------------------------------------------------------*/