scsi: pm80xx: Display proc_name in sysfs
Subsystems (2)
PATCH 1/1 scsi: pm80xx: Display proc_name in sysfs
The proc_name entry in sysfs for pm80xx is "(null)" because it is not initialized in scsi_host_template:
Before:
host:~# cat /sys/class/scsi_host/host6/proc_name (null)
After:
host:~# cat /sys/class/scsi_host/host6/proc_name pm80xx
Signed-off-by Igor Pylypiv <[email protected]>
Reviewed-by Jolly Shah <[email protected]>
--- drivers/scsi/pm8001/pm8001_init.c | 1 + 1 file changed, 1 insertion(+)
drivers/scsi/pm8001/pm8001_init.c +1 -0
@@ -99,6 +99,7 @@ static void pm8001_map_queues(struct Scsi_Host *shost)static struct scsi_host_template pm8001_sht = { .module =THIS_MODULE , .name =DRV_NAME , + .proc_name =DRV_NAME , .queuecommand = sas_queuecommand, .dma_need_drain = ata_scsi_dma_need_drain, .target_alloc = sas_target_alloc,
Signature · 1 line
2.38.0.rc1.362.ged0d419d3c-goog
Quoted 8 lines · Igor Pylypiv
The
proc_nameentry in sysfs for pm80xx is "(null)" because it is not initialized inscsi_host_template:Before:
host:~# cat /sys/class/scsi_host/host6/proc_name (null)
Quoted 6 lines
After:
host:~# cat /sys/class/scsi_host/host6/proc_name pm80xxSigned-off-by Igor Pylypiv <[email protected]>Reviewed-by Jolly Shah <[email protected]>
Acked-by Jack Wang <[email protected]>
Quoted 19 lines
--- drivers/scsi/pm8001/pm8001_init.c | 1 + 1 file changed, 1 insertion(+)drivers/scsi/pm8001/pm8001_init.c +1
-1@@ -99,6 +99,7 @@ static void pm8001_map_queues(struct Scsi_Host *shost)static struct scsi_host_template pm8001_sht = { .module =THIS_MODULE , .name =DRV_NAME , + .proc_name =DRV_NAME , .queuecommand = sas_queuecommand, .dma_need_drain = ata_scsi_dma_need_drain, .target_alloc = sas_target_alloc, --2.38.0.rc1.362.ged0d419d3c-goog
Martin K. Petersen
AppliedQuoted 8 lines · Igor Pylypiv
The
proc_nameentry in sysfs for pm80xx is "(null)" because it is not initialized inscsi_host_template:Before:
host:~# cat /sys/class/scsi_host/host6/proc_name (null)[...]
Applied to 6.1/scsi-fixes, thanks!
[1/1] scsi: pm80xx: Display proc_name in sysfs
https://git.kernel.org/mkp/scsi/c/181dfce9b63b
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering