diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2011-11-25 06:03:46 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 04:48:45 -0500 |
commit | e0ce0b0a0ae5a31ee96b38a7c5390f867634b4f6 (patch) | |
tree | 936b76647c9b96995e7f2129f17121a6e6f1f7dc /drivers/usb/dwc3/gadget.h | |
parent | 164d773168d7f09ecd46d9ce9b07f194ea97bf33 (diff) |
usb: dwc3: ep0: use dwc3_request for ep0 requsts instead of usb_request
Instead of special functions and shortcuts for sending our internal
answers to the host we started doing what the gadget does and used the
public API for this. Since we only were using a few fields the
usb_request was enough. Later added the list handling in order to
synchronize the host / gadget events and now we require to have the
dwc3_request struct around our usb_request or else we touch memory that
does not belong to us. So this patch does this.
Reported-by: Partha Basak <p-basak2@ti.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.h')
-rw-r--r-- | drivers/usb/dwc3/gadget.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/usb/dwc3/gadget.h b/drivers/usb/dwc3/gadget.h index 4cdaf02ead5d..d97f467d41cc 100644 --- a/drivers/usb/dwc3/gadget.h +++ b/drivers/usb/dwc3/gadget.h | |||
@@ -79,19 +79,6 @@ struct dwc3_gadget_ep_cmd_params { | |||
79 | 79 | ||
80 | /* -------------------------------------------------------------------------- */ | 80 | /* -------------------------------------------------------------------------- */ |
81 | 81 | ||
82 | struct dwc3_request { | ||
83 | struct usb_request request; | ||
84 | struct list_head list; | ||
85 | struct dwc3_ep *dep; | ||
86 | |||
87 | u8 epnum; | ||
88 | struct dwc3_trb_hw *trb; | ||
89 | dma_addr_t trb_dma; | ||
90 | |||
91 | unsigned direction:1; | ||
92 | unsigned mapped:1; | ||
93 | unsigned queued:1; | ||
94 | }; | ||
95 | #define to_dwc3_request(r) (container_of(r, struct dwc3_request, request)) | 82 | #define to_dwc3_request(r) (container_of(r, struct dwc3_request, request)) |
96 | 83 | ||
97 | static inline struct dwc3_request *next_request(struct list_head *list) | 84 | static inline struct dwc3_request *next_request(struct list_head *list) |