linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] libata-scsi: do not return designator for serial number
@ 2016-07-06 22:12 tom.ty89
  2016-07-12 18:49 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: tom.ty89 @ 2016-07-06 22:12 UTC (permalink / raw)
  To: tj; +Cc: linux-ide, linux-scsi, Tom Yan

From: Tom Yan <tom.ty89@gmail.com>

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

Signed-off-by: Tom Yan <tom.ty89@gmail.com>

diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index bfec66f..9f478ad 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -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;
-- 
2.9.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] libata-scsi: do not return designator for serial number
  2016-07-06 22:12 [PATCH 1/2] libata-scsi: do not return designator for serial number tom.ty89
@ 2016-07-12 18:49 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2016-07-12 18:49 UTC (permalink / raw)
  To: tom.ty89; +Cc: linux-ide, linux-scsi

On Thu, Jul 07, 2016 at 06:12:12AM +0800, tom.ty89@gmail.com wrote:
> From: Tom Yan <tom.ty89@gmail.com>
> 
> SAT (as of sat4r05f.pdf) does not require this vendor specific
> designator. Besides, we already have the Unit Serial Number VPD.
> 
> Signed-off-by: Tom Yan <tom.ty89@gmail.com>
> 
> diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
> index bfec66f..9f478ad 100644
> --- a/drivers/ata/libata-scsi.c
> +++ b/drivers/ata/libata-scsi.c
> @@ -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;
> -

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

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-07-12 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-06 22:12 [PATCH 1/2] libata-scsi: do not return designator for serial number tom.ty89
2016-07-12 18:49 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).