Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364893
b: refs/heads/master
c: 671b4b2
h: refs/heads/master
i:
  364891: 3ea4b4d
v: v3
  • Loading branch information
Tormod Volden authored and Greg Kroah-Hartman committed Apr 23, 2013
1 parent e087a47 commit dc472f7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 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: d19bf5cedfd7d53854a3bd699c98b467b139833b
refs/heads/master: 671b4b2ba9266cbcfe7210a704e9ea487dcaa988
16 changes: 14 additions & 2 deletions trunk/drivers/usb/storage/cypress_atacb.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,14 +248,26 @@ static int cypress_probe(struct usb_interface *intf,
{
struct us_data *us;
int result;
struct usb_device *device;

result = usb_stor_probe1(&us, intf, id,
(id - cypress_usb_ids) + cypress_unusual_dev_list);
if (result)
return result;

us->protocol_name = "Transparent SCSI with Cypress ATACB";
us->proto_handler = cypress_atacb_passthrough;
/* Among CY7C68300 chips, the A revision does not support Cypress ATACB
* Filter out this revision from EEPROM default descriptor values
*/
device = interface_to_usbdev(intf);
if (device->descriptor.iManufacturer != 0x38 ||
device->descriptor.iProduct != 0x4e ||
device->descriptor.iSerialNumber != 0x64) {
us->protocol_name = "Transparent SCSI with Cypress ATACB";
us->proto_handler = cypress_atacb_passthrough;
} else {
us->protocol_name = "Transparent SCSI";
us->proto_handler = usb_stor_transparent_scsi_command;
}

result = usb_stor_probe2(us);
return result;
Expand Down

0 comments on commit dc472f7

Please sign in to comment.