Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 10785
b: refs/heads/master
c: a879853
h: refs/heads/master
i:
  10783: ffc12a2
v: v3
  • Loading branch information
Daniel Drake authored and Greg Kroah-Hartman committed Oct 28, 2005
1 parent c520a1d commit ef87688
Show file tree
Hide file tree
Showing 2 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: d40ece1dc8dcc89ab921755cbc93a5cfb46d0766
refs/heads/master: a8798533c1f876b97566588cf2bf52458cb4a35d
12 changes: 6 additions & 6 deletions trunk/drivers/usb/storage/shuttle_usbat.c
Original file line number Diff line number Diff line change
Expand Up @@ -855,15 +855,15 @@ static int usbat_identify_device(struct us_data *us,
if (rc != USB_STOR_XFER_GOOD)
return USB_STOR_TRANSPORT_ERROR;

// Check for error bit
if (status & 0x01) {
// Device is a CompactFlash reader/writer
US_DEBUGP("usbat_identify_device: Detected Flash reader/writer\n");
info->devicetype = USBAT_DEV_FLASH;
} else {
// Check for error bit, or if the command 'fell through'
if (status == 0xA1 || !(status & 0x01)) {
// Device is HP 8200
US_DEBUGP("usbat_identify_device: Detected HP8200 CDRW\n");
info->devicetype = USBAT_DEV_HP8200;
} else {
// Device is a CompactFlash reader/writer
US_DEBUGP("usbat_identify_device: Detected Flash reader/writer\n");
info->devicetype = USBAT_DEV_FLASH;
}

return USB_STOR_TRANSPORT_GOOD;
Expand Down

0 comments on commit ef87688

Please sign in to comment.