Skip to contentSkip to conversation

libata-scsi: correct SPC version descriptor

PATCH RESEND In review [email protected] 2 participants 2 messages Jul 12, 2016 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20160712132935.1811-1-me

#1 lore raw

PATCH RESEND 2/2 libata-scsi: correct SPC version descriptor

From: Tom Yan <[email protected]>

The comment suggests we should be having an SPC-3 version descriptor but the 0260h is the code for "SPC-2 (no version claimed)". Correct it to 0300h so that it has the "SPC-3 (no version claimed)" descriptor.

Note that we are claiming SPC-3 version compatibility in the VERSION field of the standard INQUIRY data. Therefore, I assume the typo was on the code but not on the comment.

drivers/ata/libata-scsi.c +2 -2
index 0a35164..8221800 100644
@@ -2075,8 +2075,8 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf)
 		0x03,
 		0x20,	/* SBC-2 (no version claimed) */
 
-		0x02,
-		0x60	/* SPC-3 (no version claimed) */
+		0x03,
+		0x00	/* SPC-3 (no version claimed) */
 	};
 	const u8 versions_zbc[] = {
 		0x00,
Signature · 1 line
2.9.0
#2 lore raw
Quoted 11 lines · On Tue, Jul 12, 2016 at 09:29:35PM +0800, [email protected] wrote:

From: Tom Yan <[email protected]>

The comment suggests we should be having an SPC-3 version descriptor but the 0260h is the code for "SPC-2 (no version claimed)". Correct it to 0300h so that it has the "SPC-3 (no version claimed)" descriptor.

Note that we are claiming SPC-3 version compatibility in the VERSION field of the standard INQUIRY data. Therefore, I assume the typo was on the code but not on the comment.

Applied 1-2 to libata/for-4.8.

Thanks.

Signature · 1 line
tejun