diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2005-10-04 14:24:04 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-04 14:24:04 -0400 |
commit | 643736a58d2668af94aee05670c5e9ae76e7b85f (patch) | |
tree | 9ffda5b1611bef0daec14faf051354a7cfde0016 /drivers | |
parent | 9d5b13021375cad2d64d56105e5f4b5f1509ced2 (diff) | |
parent | 3f19ee8cb3a1003cb5183696bc55934f5865f868 (diff) |
Merge branch 'scsi-scan'
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/libata-core.c | 2 | ||||
-rw-r--r-- | drivers/scsi/libata-scsi.c | 16 | ||||
-rw-r--r-- | drivers/scsi/libata.h | 1 |
3 files changed, 18 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 82ec7f30bf3f..f0894bfa908b 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c | |||
@@ -4203,7 +4203,7 @@ int ata_device_add(struct ata_probe_ent *ent) | |||
4203 | for (i = 0; i < count; i++) { | 4203 | for (i = 0; i < count; i++) { |
4204 | struct ata_port *ap = host_set->ports[i]; | 4204 | struct ata_port *ap = host_set->ports[i]; |
4205 | 4205 | ||
4206 | scsi_scan_host(ap->host); | 4206 | ata_scsi_scan_host(ap); |
4207 | } | 4207 | } |
4208 | 4208 | ||
4209 | dev_set_drvdata(dev, host_set); | 4209 | dev_set_drvdata(dev, host_set); |
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 | ||
1819 | void 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 | |||
diff --git a/drivers/scsi/libata.h b/drivers/scsi/libata.h index d608b3a0f6fe..c7a1fa1c9abc 100644 --- a/drivers/scsi/libata.h +++ b/drivers/scsi/libata.h | |||
@@ -51,6 +51,7 @@ extern void swap_buf_le16(u16 *buf, unsigned int buf_words); | |||
51 | 51 | ||
52 | 52 | ||
53 | /* libata-scsi.c */ | 53 | /* libata-scsi.c */ |
54 | extern void ata_scsi_scan_host(struct ata_port *ap); | ||
54 | extern void ata_to_sense_error(struct ata_queued_cmd *qc, u8 drv_stat); | 55 | extern void ata_to_sense_error(struct ata_queued_cmd *qc, u8 drv_stat); |
55 | extern int ata_scsi_error(struct Scsi_Host *host); | 56 | extern int ata_scsi_error(struct Scsi_Host *host); |
56 | extern unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf, | 57 | extern unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf, |