Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 280838
b: refs/heads/master
c: e0ce0b0
h: refs/heads/master
v: v3
  • Loading branch information
Sebastian Andrzej Siewior authored and Felipe Balbi committed Dec 12, 2011
1 parent 800a447 commit 6156106
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 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: 164d773168d7f09ecd46d9ce9b07f194ea97bf33
refs/heads/master: e0ce0b0a0ae5a31ee96b38a7c5390f867634b4f6
16 changes: 15 additions & 1 deletion trunk/drivers/usb/dwc3/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,20 @@ struct dwc3_hwparams {
/* HWPARAMS1 */
#define DWC3_NUM_INT(n) (((n) & (0x3f << 15)) >> 15)

struct dwc3_request {
struct usb_request request;
struct list_head list;
struct dwc3_ep *dep;

u8 epnum;
struct dwc3_trb_hw *trb;
dma_addr_t trb_dma;

unsigned direction:1;
unsigned mapped:1;
unsigned queued:1;
};

/**
* struct dwc3 - representation of our controller
* @ctrl_req: usb control request which is used for ep0
Expand Down Expand Up @@ -596,7 +610,7 @@ struct dwc3 {
dma_addr_t ep0_trb_addr;
dma_addr_t setup_buf_addr;
dma_addr_t ep0_bounce_addr;
struct usb_request ep0_usb_req;
struct dwc3_request ep0_usb_req;
/* device lock */
spinlock_t lock;
struct device *dev;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/usb/dwc3/ep0.c
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,10 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc,

response_pkt = (__le16 *) dwc->setup_buf;
*response_pkt = cpu_to_le16(usb_status);
dwc->ep0_usb_req.length = sizeof(*response_pkt);
dwc->ep0_usb_req.dma = dwc->setup_buf_addr;
dwc->ep0_usb_req.complete = dwc3_ep0_status_cmpl;
return usb_ep_queue(&dwc->eps[0]->endpoint, &dwc->ep0_usb_req,
dwc->ep0_usb_req.request.length = sizeof(*response_pkt);
dwc->ep0_usb_req.request.dma = dwc->setup_buf_addr;
dwc->ep0_usb_req.request.complete = dwc3_ep0_status_cmpl;
return usb_ep_queue(&dwc->eps[0]->endpoint, &dwc->ep0_usb_req.request,
GFP_ATOMIC);
}

Expand Down
13 changes: 0 additions & 13 deletions trunk/drivers/usb/dwc3/gadget.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,6 @@ struct dwc3_gadget_ep_cmd_params {

/* -------------------------------------------------------------------------- */

struct dwc3_request {
struct usb_request request;
struct list_head list;
struct dwc3_ep *dep;

u8 epnum;
struct dwc3_trb_hw *trb;
dma_addr_t trb_dma;

unsigned direction:1;
unsigned mapped:1;
unsigned queued:1;
};
#define to_dwc3_request(r) (container_of(r, struct dwc3_request, request))

static inline struct dwc3_request *next_request(struct list_head *list)
Expand Down

0 comments on commit 6156106

Please sign in to comment.