Skip to contentSkip to conversation

libata-scsi: set correct VERSION field for ZAC devices

PATCH Superseded [email protected] 2 participants 2 messages Jul 12, 2016 libata

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata-scsi: set correct VERSION field for ZAC devices

From: Tom Yan <[email protected]>

Commit 856c4663930988118d9f355aad66811dd6df06de had the line that "bumps" the VERSION field in standard INQUIRY data removed. Add it back and claim SPC-5 version compatibility, which matches with the current version descriptor "SPC-5 (no version claimed)" used for ZAC devices.

drivers/ata/libata-scsi.c +3 -1
index bfec66f..27e29e1 100644
@@ -2109,8 +2109,10 @@ static unsigned int ata_scsiop_inq_std(struct ata_scsi_args *args, u8 *rbuf)
 	    (args->dev->link->ap->pflags & ATA_PFLAG_EXTERNAL))
 		hdr[1] |= (1 << 7);
 
-	if (args->dev->class == ATA_DEV_ZAC)
+	if (args->dev->class == ATA_DEV_ZAC) {
 		hdr[0] = TYPE_ZBC;
+		hdr[2] = 0x7; /* claim SPC-5 version compatibility */
+	}
 
 	memcpy(rbuf, hdr, sizeof(hdr));
 	memcpy(&rbuf[8], "ATA     ", 8);
Signature · 1 line
2.9.0
#1 lore raw
Quoted 3 lines · On 7/12/2016 4:45 PM, [email protected] wrote:

From: Tom Yan <[email protected]>

Commit 856c4663930988118d9f355aad66811dd6df06de had the line that

You also need to specify the commit summary in (""). It's enough to
specify 12 digits of SHA1 ID.

Quoted 6 lines

"bumps" the VERSION field in standard INQUIRY data removed. Add it back and claim SPC-5 version compatibility, which matches with the current version descriptor "SPC-5 (no version claimed)" used for ZAC devices.

[...]

MBR, Sergei