Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271864
b: refs/heads/master
c: 4284570
h: refs/heads/master
v: v3
  • Loading branch information
Thierry Reding authored and Mauro Carvalho Chehab committed Sep 21, 2011
1 parent c512782 commit 34fa247
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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: 0a54b86a71dfec88d9b12f0e003ebc4ebb4b1f0a
refs/heads/master: 42845708363fc92a190f5c47e6fe750e3919f867
3 changes: 2 additions & 1 deletion trunk/drivers/staging/tm6000/tm6000-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,8 @@ int tm6000_reset(struct tm6000_core *dev)
return err;
}

msleep(5);
if ((dev->quirks & TM6000_QUIRK_NO_USB_DELAY) == 0)
msleep(5);

/*
* Not all devices have int_in defined
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/staging/tm6000/tm6000.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ struct tm6000_endpoint {
unsigned maxsize;
};

#define TM6000_QUIRK_NO_USB_DELAY (1 << 0)

struct tm6000_core {
/* generic device properties */
char name[30]; /* name (including minor) of the device */
Expand Down Expand Up @@ -260,6 +262,8 @@ struct tm6000_core {
struct usb_isoc_ctl isoc_ctl;

spinlock_t slock;

unsigned long quirks;
};

enum tm6000_ops_type {
Expand Down

0 comments on commit 34fa247

Please sign in to comment.