Re: [PATCH] scsi: pm80xx: Display proc_name in sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Oct 8, 2022 at 1:07 AM Igor Pylypiv <ipylypiv@xxxxxxxxxx> wrote:
>
> 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 <ipylypiv@xxxxxxxxxx>
> Reviewed-by: Jolly Shah <jollys@xxxxxxxxxx>
Acked-by: Jack Wang <jinpu.wang@xxxxxxxxx>
> ---
>  drivers/scsi/pm8001/pm8001_init.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c
> index 2ff2fac1e403..7a7d63aa90e2 100644
> --- a/drivers/scsi/pm8001/pm8001_init.c
> +++ b/drivers/scsi/pm8001/pm8001_init.c
> @@ -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
>



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux