Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 282222
b: refs/heads/master
c: bee89ea
h: refs/heads/master
v: v3
  • Loading branch information
Moger, Babu authored and James Bottomley committed Dec 15, 2011
1 parent d57b006 commit 0425d10
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a315969e8d699682adf449813de84b7f2358f64d
refs/heads/master: bee89eae8de143b1d9f82ab7ab6d9daef8e44760
19 changes: 19 additions & 0 deletions trunk/drivers/scsi/device_handler/scsi_dh_rdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,24 @@ static const struct scsi_dh_devlist rdac_dev_list[] = {
{NULL, NULL},
};

static bool rdac_match(struct scsi_device *sdev)
{
int i;

if (scsi_device_tpgs(sdev))
return false;

for (i = 0; rdac_dev_list[i].vendor; i++) {
if (!strncmp(sdev->vendor, rdac_dev_list[i].vendor,
strlen(rdac_dev_list[i].vendor)) &&
!strncmp(sdev->model, rdac_dev_list[i].model,
strlen(rdac_dev_list[i].model))) {
return true;
}
}
return false;
}

static int rdac_bus_attach(struct scsi_device *sdev);
static void rdac_bus_detach(struct scsi_device *sdev);

Expand All @@ -832,6 +850,7 @@ static struct scsi_device_handler rdac_dh = {
.attach = rdac_bus_attach,
.detach = rdac_bus_detach,
.activate = rdac_activate,
.match = rdac_match,
};

static int rdac_bus_attach(struct scsi_device *sdev)
Expand Down

0 comments on commit 0425d10

Please sign in to comment.