Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9603
b: refs/heads/master
c: 3f19ee8
h: refs/heads/master
i:
  9601: 2a5979e
  9599: 686c8d6
v: v3
  • Loading branch information
Jeff Garzik committed Oct 4, 2005
1 parent ece48ad commit de39239
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 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: 644dd0cc494702ecd0698f467de113ace9593888
refs/heads/master: 3f19ee8cb3a1003cb5183696bc55934f5865f868
10 changes: 7 additions & 3 deletions trunk/drivers/scsi/libata-scsi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,13 +1680,17 @@ void ata_scsi_simulate(u16 *id,

void ata_scsi_scan_host(struct ata_port *ap)
{
struct ata_device *dev;
unsigned int i;

if (ap->flags & ATA_FLAG_PORT_DISABLED)
return;

for (i = 0; i < ATA_MAX_DEVICES; i++)
if (ata_dev_present(&ap->device[i]))
scsi_scan_target(&ap->host->shost_gendev, 0, i, ~0, 0);
for (i = 0; i < ATA_MAX_DEVICES; i++) {
dev = &ap->device[i];

if (ata_dev_present(dev))
scsi_scan_target(&ap->host->shost_gendev, 0, i, 0, 0);
}
}

0 comments on commit de39239

Please sign in to comment.