scsi: core: Add sysfs attributes for VPD pages 0h and 89h
Add sysfs attributes for the ATA information page and Supported VPD Pages page. Link: https://lore.kernel.org/r/20190926162216.56591-1-ryanattard@ryanattard.info Signed-off-by: Ryan Attard <ryanattard@ryanattard.info> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:

committed by
Martin K. Petersen

parent
9e322310e1
commit
d188b0675b
@@ -465,10 +465,14 @@ void scsi_attach_vpd(struct scsi_device *sdev)
|
||||
return;
|
||||
|
||||
for (i = 4; i < vpd_buf->len; i++) {
|
||||
if (vpd_buf->data[i] == 0x0)
|
||||
scsi_update_vpd_page(sdev, 0x0, &sdev->vpd_pg0);
|
||||
if (vpd_buf->data[i] == 0x80)
|
||||
scsi_update_vpd_page(sdev, 0x80, &sdev->vpd_pg80);
|
||||
if (vpd_buf->data[i] == 0x83)
|
||||
scsi_update_vpd_page(sdev, 0x83, &sdev->vpd_pg83);
|
||||
if (vpd_buf->data[i] == 0x89)
|
||||
scsi_update_vpd_page(sdev, 0x89, &sdev->vpd_pg89);
|
||||
}
|
||||
kfree(vpd_buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user