aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libata-scsi.c
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@pobox.com>2005-10-04 14:24:04 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-04 14:24:04 -0400
commit643736a58d2668af94aee05670c5e9ae76e7b85f (patch)
tree9ffda5b1611bef0daec14faf051354a7cfde0016 /drivers/scsi/libata-scsi.c
parent9d5b13021375cad2d64d56105e5f4b5f1509ced2 (diff)
parent3f19ee8cb3a1003cb5183696bc55934f5865f868 (diff)
Merge branch 'scsi-scan'
Diffstat (limited to 'drivers/scsi/libata-scsi.c')
-rw-r--r--drivers/scsi/libata-scsi.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 4982e6eff700..45ebe9fd52ea 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -1816,3 +1816,19 @@ void ata_scsi_simulate(u16 *id,
1816 } 1816 }
1817} 1817}
1818 1818
1819void ata_scsi_scan_host(struct ata_port *ap)
1820{
1821 struct ata_device *dev;
1822 unsigned int i;
1823
1824 if (ap->flags & ATA_FLAG_PORT_DISABLED)
1825 return;
1826
1827 for (i = 0; i < ATA_MAX_DEVICES; i++) {
1828 dev = &ap->device[i];
1829
1830 if (ata_dev_present(dev))
1831 scsi_scan_target(&ap->host->shost_gendev, 0, i, 0, 0);
1832 }
1833}
1834