Skip to content

Commit

Permalink
[SCSI] libsas: Unknown STP devices should be reported to libata as un…
Browse files Browse the repository at this point in the history
…known.

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>
  • Loading branch information
Darrick J. Wong authored and James Bottomley committed Jul 18, 2007
1 parent d97db63 commit 5986c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/libsas/sas_ata.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static void sas_ata_phy_reset(struct ata_port *ap)
SAS_DPRINTK("%s: Unknown SATA command set: %d.\n",
__FUNCTION__,
dev->sata_dev.command_set);
ap->device[0].class = ATA_DEV_ATA;
ap->device[0].class = ATA_DEV_UNKNOWN;
break;
}

Expand Down

0 comments on commit 5986c3d

Please sign in to comment.