diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2007-01-30 04:18:52 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-18 12:15:41 -0400 |
commit | 5986c3d305f497d3ff33d65e4d9ff6d00121407b (patch) | |
tree | 5c3c008f3ef68927680b530b3f81766899755946 | |
parent | d97db63f8dd22e7b669982e47db0c5e3f569a6b5 (diff) |
[SCSI] libsas: Unknown STP devices should be reported to libata as unknown.
When libsas encounters a STP device whose protocol isn't recognized (i.e.
not ATA or ATAPI), we should set the ata_device's class to ATA_DEV_UNKNOWN
instead of ATA_DEV_ATA.
Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/scsi/libsas/sas_ata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libsas/sas_ata.c b/drivers/scsi/libsas/sas_ata.c index 004b463a1c4e..e164f58f3859 100644 --- a/drivers/scsi/libsas/sas_ata.c +++ b/drivers/scsi/libsas/sas_ata.c | |||
@@ -232,7 +232,7 @@ static void sas_ata_phy_reset(struct ata_port *ap) | |||
232 | SAS_DPRINTK("%s: Unknown SATA command set: %d.\n", | 232 | SAS_DPRINTK("%s: Unknown SATA command set: %d.\n", |
233 | __FUNCTION__, | 233 | __FUNCTION__, |
234 | dev->sata_dev.command_set); | 234 | dev->sata_dev.command_set); |
235 | ap->device[0].class = ATA_DEV_ATA; | 235 | ap->device[0].class = ATA_DEV_UNKNOWN; |
236 | break; | 236 | break; |
237 | } | 237 | } |
238 | 238 | ||