Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303790
b: refs/heads/master
c: 2eb2cff
h: refs/heads/master
v: v3
  • Loading branch information
Ido Shayevitz authored and Felipe Balbi committed May 4, 2012
1 parent e075e6e commit 47df66e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 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: a1976f750bafb85a0ae69860178b99d1f364a479
refs/heads/master: 2eb2cff56aeb02e9451341b4d0fe7801e7fade14
10 changes: 5 additions & 5 deletions trunk/drivers/usb/gadget/m66592-udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ static int alloc_pipe_config(struct m66592_ep *ep,
int *counter;
int ret;

ep->desc = desc;
ep->ep.desc = desc;

BUG_ON(ep->pipenum);

Expand Down Expand Up @@ -558,7 +558,7 @@ static void start_packet_read(struct m66592_ep *ep, struct m66592_request *req)

static void start_packet(struct m66592_ep *ep, struct m66592_request *req)
{
if (ep->desc->bEndpointAddress & USB_DIR_IN)
if (ep->ep.desc->bEndpointAddress & USB_DIR_IN)
start_packet_write(ep, req);
else
start_packet_read(ep, req);
Expand Down Expand Up @@ -734,7 +734,7 @@ __acquires(m66592->lock)

if (restart) {
req = list_entry(ep->queue.next, struct m66592_request, queue);
if (ep->desc)
if (ep->ep.desc)
start_packet(ep, req);
}
}
Expand Down Expand Up @@ -917,7 +917,7 @@ static void irq_pipe_ready(struct m66592 *m66592, u16 status, u16 enb)
ep = m66592->pipenum2ep[pipenum];
req = list_entry(ep->queue.next,
struct m66592_request, queue);
if (ep->desc->bEndpointAddress & USB_DIR_IN)
if (ep->ep.desc->bEndpointAddress & USB_DIR_IN)
irq_packet_write(ep, req);
else
irq_packet_read(ep, req);
Expand Down Expand Up @@ -1377,7 +1377,7 @@ static int m66592_queue(struct usb_ep *_ep, struct usb_request *_req,
req->req.actual = 0;
req->req.status = -EINPROGRESS;

if (ep->desc == NULL) /* control */
if (ep->ep.desc == NULL) /* control */
start_ep0(ep, req);
else {
if (request && !ep->busy)
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/usb/gadget/m66592-udc.h
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ struct m66592_ep {
unsigned use_dma:1;
u16 pipenum;
u16 type;
const struct usb_endpoint_descriptor *desc;

/* register address */
unsigned long fifoaddr;
unsigned long fifosel;
Expand Down

0 comments on commit 47df66e

Please sign in to comment.