Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185269
b: refs/heads/master
c: 2bc0d10
h: refs/heads/master
i:
  185267: 8cd72b8
v: v3
  • Loading branch information
Pete Zaitcev authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 8175b4b commit ebf8f51
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 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: 7ed069c12c866c5c06e4e05d26878797e3731829
refs/heads/master: 2bc0d109326e9f2b25fa1dfcc9de2489e1e00e36
7 changes: 6 additions & 1 deletion trunk/drivers/usb/mon/mon_bin.c
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,8 @@ static void mon_bin_event(struct mon_reader_bin *rp, struct urb *urb,
char ev_type, int status)
{
const struct usb_endpoint_descriptor *epd = &urb->ep->desc;
unsigned long flags;
struct timeval ts;
unsigned long flags;
unsigned int urb_length;
unsigned int offset;
unsigned int length;
Expand Down Expand Up @@ -600,10 +600,13 @@ static void mon_bin_complete(void *data, struct urb *urb, int status)
static void mon_bin_error(void *data, struct urb *urb, int error)
{
struct mon_reader_bin *rp = data;
struct timeval ts;
unsigned long flags;
unsigned int offset;
struct mon_bin_hdr *ep;

do_gettimeofday(&ts);

spin_lock_irqsave(&rp->b_lock, flags);

offset = mon_buff_area_alloc(rp, PKT_SIZE);
Expand All @@ -623,6 +626,8 @@ static void mon_bin_error(void *data, struct urb *urb, int error)
ep->devnum = urb->dev->devnum;
ep->busnum = urb->dev->bus->busnum;
ep->id = (unsigned long) urb;
ep->ts_sec = ts.tv_sec;
ep->ts_usec = ts.tv_usec;
ep->status = error;

ep->flag_setup = '-';
Expand Down
4 changes: 2 additions & 2 deletions trunk/drivers/usb/mon/mon_text.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,12 +273,12 @@ static void mon_text_error(void *data, struct urb *urb, int error)

ep->type = 'E';
ep->id = (unsigned long) urb;
ep->busnum = 0;
ep->busnum = urb->dev->bus->busnum;
ep->devnum = urb->dev->devnum;
ep->epnum = usb_endpoint_num(&urb->ep->desc);
ep->xfertype = usb_endpoint_type(&urb->ep->desc);
ep->is_in = usb_urb_dir_in(urb);
ep->tstamp = 0;
ep->tstamp = mon_get_timestamp();
ep->length = 0;
ep->status = error;

Expand Down

0 comments on commit ebf8f51

Please sign in to comment.