Skip to contentSkip to conversation

libata-scsi: do not return designator for serial number

PATCH In review [email protected] 2 participants 2 messages Jul 6, 2016 – Jul 12, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libata-scsi: do not return designator for serial number

From: Tom Yan <[email protected]>

SAT (as of sat4r05f.pdf) does not require this vendor specific designator. Besides, we already have the Unit Serial Number VPD.

drivers/ata/libata-scsi.c +0 -8
index bfec66f..9f478ad 100644
@@ -2210,14 +2210,6 @@ static unsigned int ata_scsiop_inq_83(struct ata_scsi_args *args, u8 *rbuf)
 	rbuf[1] = 0x83;			/* this page code */
 	num = 4;
 
-	/* piv=0, assoc=lu, code_set=ACSII, designator=vendor */
-	rbuf[num + 0] = 2;
-	rbuf[num + 3] = ATA_ID_SERNO_LEN;
-	num += 4;
-	ata_id_string(args->id, (unsigned char *) rbuf + num,
-		      ATA_ID_SERNO, ATA_ID_SERNO_LEN);
-	num += ATA_ID_SERNO_LEN;
-
 	/* SAT defined lu model and serial numbers descriptor */
 	/* piv=0, assoc=lu, code_set=ACSII, designator=t10 vendor id */
 	rbuf[num + 0] = 2;
Signature · 1 line
2.9.0
#1 lore raw
Quoted 13 lines · On Thu, Jul 07, 2016 at 06:12:12AM +0800, [email protected] wrote:

From: Tom Yan <[email protected]>

SAT (as of sat4r05f.pdf) does not require this vendor specific designator. Besides, we already have the Unit Serial Number VPD.

drivers/ata/libata-scsi.c +0 -0
index bfec66f..9f478ad 100644
@@ -2210,14 +2210,6 @@ static unsigned int ata_scsiop_inq_83(struct ata_scsi_args *args, u8 *rbuf)
 	rbuf[1] = 0x83;			/* this page code */

drivers/ata/libata-scsi.c static unsigned int ata_scsiop_inq_83(struct ata_scsi_args *args, u8 *rbuf) · line 2220

Quoted 10 lines
drivers/ata/libata-scsi.c +0 -8
 	num = 4;
 
-	/* piv=0, assoc=lu, code_set=ACSII, designator=vendor */
-	rbuf[num + 0] = 2;
-	rbuf[num + 3] = ATA_ID_SERNO_LEN;
-	num += 4;
-	ata_id_string(args->id, (unsigned char *) rbuf + num,
-		      ATA_ID_SERNO, ATA_ID_SERNO_LEN);
-	num += ATA_ID_SERNO_LEN;
-

If it isn't actually broken, I don't want to change it. It's a userland visible change which is gratuitous.

Thanks.

Signature · 1 line
tejun