scsi: isci: Add libsas SATA sysfs attributes group
authorIgor Pylypiv <ipylypiv@google.com>
Thu, 7 Mar 2024 21:44:18 +0000 (13:44 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 25 Mar 2024 20:00:07 +0000 (16:00 -0400)
The added sysfs attributes group enables the configuration of NCQ Priority
feature for HBAs that rely on libsas to manage SATA devices.

Reviewed-by: John Garry <john.g.garry@oracle.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Link: https://lore.kernel.org/r/20240307214418.3812290-8-ipylypiv@google.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/isci/init.c

index c582a3932ceab74a6cda37cc6c243b4d943f529b..d0a23ce4afba33866d6119bd1e49c9575482cd44 100644 (file)
@@ -149,6 +149,11 @@ static struct attribute *isci_host_attrs[] = {
 
 ATTRIBUTE_GROUPS(isci_host);
 
+static const struct attribute_group *isci_sdev_groups[] = {
+       &sas_ata_sdev_attr_group,
+       NULL
+};
+
 static const struct scsi_host_template isci_sht = {
 
        .module                         = THIS_MODULE,
@@ -176,6 +181,7 @@ static const struct scsi_host_template isci_sht = {
        .compat_ioctl                   = sas_ioctl,
 #endif
        .shost_groups                   = isci_host_groups,
+       .sdev_groups                    = isci_sdev_groups,
        .track_queue_depth              = 1,
 };