diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 12:25:16 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-09-23 12:25:16 -0400 |
| commit | be90a49ca22a95f184d9f32d35b5247b44032849 (patch) | |
| tree | d3c2edc18c003c384366f57901616ac29c80bc27 /drivers/usb/storage | |
| parent | 1f0918d03ff4b5c94540c71ce889672abdbc2f4a (diff) | |
| parent | a87371b477774b290c27bc5cb7f4ccc5379574a9 (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6: (142 commits)
USB: Fix sysfs paths in documentation
USB: skeleton: fix coding style issues.
USB: O_NONBLOCK in read path of skeleton
USB: make usb-skeleton honor O_NONBLOCK in write path
USB: skel_read really sucks royally
USB: Add hub descriptor update hook for xHCI
USB: xhci: Support USB hubs.
USB: xhci: Set multi-TT field for LS/FS devices under hubs.
USB: xhci: Set route string for all devices.
USB: xhci: Fix command wait list handling.
USB: xhci: Change how xHCI commands are handled.
USB: xhci: Refactor input device context setup.
USB: xhci: Endpoint representation refactoring.
USB: gadget: ether needs to select CRC32
USB: fix USBTMC get_capabilities success handling
USB: fix missing error check in probing
USB: usbfs: add USBDEVFS_URB_BULK_CONTINUATION flag
USB: support for autosuspend in sierra while online
USB: ehci-dbgp,ehci: Allow dbpg to work with suspend/resume
USB: ehci-dbgp,documentation: Documentation updates for ehci-dbgp
...
Diffstat (limited to 'drivers/usb/storage')
| -rw-r--r-- | drivers/usb/storage/datafab.c | 4 | ||||
| -rw-r--r-- | drivers/usb/storage/initializers.c | 2 | ||||
| -rw-r--r-- | drivers/usb/storage/jumpshot.c | 2 | ||||
| -rw-r--r-- | drivers/usb/storage/onetouch.c | 2 | ||||
| -rw-r--r-- | drivers/usb/storage/unusual_devs.h | 22 |
5 files changed, 6 insertions, 26 deletions
diff --git a/drivers/usb/storage/datafab.c b/drivers/usb/storage/datafab.c index 2b6e565262c2..ded836b02d7b 100644 --- a/drivers/usb/storage/datafab.c +++ b/drivers/usb/storage/datafab.c | |||
| @@ -334,7 +334,7 @@ static int datafab_determine_lun(struct us_data *us, | |||
| 334 | unsigned char *buf; | 334 | unsigned char *buf; |
| 335 | int count = 0, rc; | 335 | int count = 0, rc; |
| 336 | 336 | ||
| 337 | if (!us || !info) | 337 | if (!info) |
| 338 | return USB_STOR_TRANSPORT_ERROR; | 338 | return USB_STOR_TRANSPORT_ERROR; |
| 339 | 339 | ||
| 340 | memcpy(command, scommand, 8); | 340 | memcpy(command, scommand, 8); |
| @@ -399,7 +399,7 @@ static int datafab_id_device(struct us_data *us, | |||
| 399 | unsigned char *reply; | 399 | unsigned char *reply; |
| 400 | int rc; | 400 | int rc; |
| 401 | 401 | ||
| 402 | if (!us || !info) | 402 | if (!info) |
| 403 | return USB_STOR_TRANSPORT_ERROR; | 403 | return USB_STOR_TRANSPORT_ERROR; |
| 404 | 404 | ||
| 405 | if (info->lun == -1) { | 405 | if (info->lun == -1) { |
diff --git a/drivers/usb/storage/initializers.c b/drivers/usb/storage/initializers.c index ec17c96371af..105d900150c1 100644 --- a/drivers/usb/storage/initializers.c +++ b/drivers/usb/storage/initializers.c | |||
| @@ -102,5 +102,5 @@ int usb_stor_huawei_e220_init(struct us_data *us) | |||
| 102 | USB_TYPE_STANDARD | USB_RECIP_DEVICE, | 102 | USB_TYPE_STANDARD | USB_RECIP_DEVICE, |
| 103 | 0x01, 0x0, NULL, 0x0, 1000); | 103 | 0x01, 0x0, NULL, 0x0, 1000); |
| 104 | US_DEBUGP("Huawei mode set result is %d\n", result); | 104 | US_DEBUGP("Huawei mode set result is %d\n", result); |
| 105 | return (result ? 0 : -ENODEV); | 105 | return 0; |
| 106 | } | 106 | } |
diff --git a/drivers/usb/storage/jumpshot.c b/drivers/usb/storage/jumpshot.c index 1c69420e3acf..6168596c5ac6 100644 --- a/drivers/usb/storage/jumpshot.c +++ b/drivers/usb/storage/jumpshot.c | |||
| @@ -335,7 +335,7 @@ static int jumpshot_id_device(struct us_data *us, | |||
| 335 | unsigned char *reply; | 335 | unsigned char *reply; |
| 336 | int rc; | 336 | int rc; |
| 337 | 337 | ||
| 338 | if (!us || !info) | 338 | if (!info) |
| 339 | return USB_STOR_TRANSPORT_ERROR; | 339 | return USB_STOR_TRANSPORT_ERROR; |
| 340 | 340 | ||
| 341 | command[0] = 0xE0; | 341 | command[0] = 0xE0; |
diff --git a/drivers/usb/storage/onetouch.c b/drivers/usb/storage/onetouch.c index 380233bd6a39..80e65f29921c 100644 --- a/drivers/usb/storage/onetouch.c +++ b/drivers/usb/storage/onetouch.c | |||
| @@ -163,7 +163,7 @@ static void usb_onetouch_pm_hook(struct us_data *us, int action) | |||
| 163 | usb_kill_urb(onetouch->irq); | 163 | usb_kill_urb(onetouch->irq); |
| 164 | break; | 164 | break; |
| 165 | case US_RESUME: | 165 | case US_RESUME: |
| 166 | if (usb_submit_urb(onetouch->irq, GFP_KERNEL) != 0) | 166 | if (usb_submit_urb(onetouch->irq, GFP_NOIO) != 0) |
| 167 | dev_err(&onetouch->irq->dev->dev, | 167 | dev_err(&onetouch->irq->dev->dev, |
| 168 | "usb_submit_urb failed\n"); | 168 | "usb_submit_urb failed\n"); |
| 169 | break; | 169 | break; |
diff --git a/drivers/usb/storage/unusual_devs.h b/drivers/usb/storage/unusual_devs.h index 7477d411959f..079ae0f7bec1 100644 --- a/drivers/usb/storage/unusual_devs.h +++ b/drivers/usb/storage/unusual_devs.h | |||
| @@ -66,13 +66,6 @@ UNUSUAL_DEV( 0x03eb, 0x2002, 0x0100, 0x0100, | |||
| 66 | US_SC_DEVICE, US_PR_DEVICE, NULL, | 66 | US_SC_DEVICE, US_PR_DEVICE, NULL, |
| 67 | US_FL_IGNORE_RESIDUE), | 67 | US_FL_IGNORE_RESIDUE), |
| 68 | 68 | ||
| 69 | /* modified by Tobias Lorenz <tobias.lorenz@gmx.net> */ | ||
| 70 | UNUSUAL_DEV( 0x03ee, 0x6901, 0x0000, 0x0200, | ||
| 71 | "Mitsumi", | ||
| 72 | "USB FDD", | ||
| 73 | US_SC_DEVICE, US_PR_DEVICE, NULL, | ||
| 74 | US_FL_SINGLE_LUN ), | ||
| 75 | |||
| 76 | /* Reported by Rodolfo Quesada <rquesada@roqz.net> */ | 69 | /* Reported by Rodolfo Quesada <rquesada@roqz.net> */ |
| 77 | UNUSUAL_DEV( 0x03ee, 0x6906, 0x0003, 0x0003, | 70 | UNUSUAL_DEV( 0x03ee, 0x6906, 0x0003, 0x0003, |
| 78 | "VIA Technologies Inc.", | 71 | "VIA Technologies Inc.", |
| @@ -233,13 +226,6 @@ UNUSUAL_DEV( 0x0421, 0x0495, 0x0370, 0x0370, | |||
| 233 | US_SC_DEVICE, US_PR_DEVICE, NULL, | 226 | US_SC_DEVICE, US_PR_DEVICE, NULL, |
| 234 | US_FL_MAX_SECTORS_64 ), | 227 | US_FL_MAX_SECTORS_64 ), |
| 235 | 228 | ||
| 236 | /* Reported by Olaf Hering <olh@suse.de> from novell bug #105878 */ | ||
| 237 | UNUSUAL_DEV( 0x0424, 0x0fdc, 0x0210, 0x0210, | ||
| 238 | "SMSC", | ||
| 239 | "FDC GOLD-2.30", | ||
| 240 | US_SC_DEVICE, US_PR_DEVICE, NULL, | ||
| 241 | US_FL_SINGLE_LUN ), | ||
| 242 | |||
| 243 | #ifdef NO_SDDR09 | 229 | #ifdef NO_SDDR09 |
| 244 | UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100, | 230 | UNUSUAL_DEV( 0x0436, 0x0005, 0x0100, 0x0100, |
| 245 | "Microtech", | 231 | "Microtech", |
| @@ -664,19 +650,13 @@ UNUSUAL_DEV( 0x055d, 0x2020, 0x0000, 0x0210, | |||
| 664 | US_SC_DEVICE, US_PR_DEVICE, NULL, | 650 | US_SC_DEVICE, US_PR_DEVICE, NULL, |
| 665 | US_FL_SINGLE_LUN ), | 651 | US_FL_SINGLE_LUN ), |
| 666 | 652 | ||
| 667 | 653 | /* We keep this entry to force the transport; firmware 3.00 and later is ok. */ | |
| 668 | UNUSUAL_DEV( 0x057b, 0x0000, 0x0000, 0x0299, | 654 | UNUSUAL_DEV( 0x057b, 0x0000, 0x0000, 0x0299, |
| 669 | "Y-E Data", | 655 | "Y-E Data", |
| 670 | "Flashbuster-U", | 656 | "Flashbuster-U", |
| 671 | US_SC_DEVICE, US_PR_CB, NULL, | 657 | US_SC_DEVICE, US_PR_CB, NULL, |
| 672 | US_FL_SINGLE_LUN), | 658 | US_FL_SINGLE_LUN), |
| 673 | 659 | ||
| 674 | UNUSUAL_DEV( 0x057b, 0x0000, 0x0300, 0x9999, | ||
| 675 | "Y-E Data", | ||
| 676 | "Flashbuster-U", | ||
| 677 | US_SC_DEVICE, US_PR_DEVICE, NULL, | ||
| 678 | US_FL_SINGLE_LUN), | ||
| 679 | |||
| 680 | /* Reported by Johann Cardon <johann.cardon@free.fr> | 660 | /* Reported by Johann Cardon <johann.cardon@free.fr> |
| 681 | * This entry is needed only because the device reports | 661 | * This entry is needed only because the device reports |
| 682 | * bInterfaceClass = 0xff (vendor-specific) | 662 | * bInterfaceClass = 0xff (vendor-specific) |
