提交 5986c3d3 编写于 作者: D Darrick J. Wong 提交者: James Bottomley

[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: NDarrick J. Wong <djwong@us.ibm.com>
Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
上级 d97db63f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册