]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: mpt3sas: Introduce sas_ncq_prio_supported sysfs sttribute
authorDamien Le Moal <damien.lemoal@wdc.com>
Sat, 7 Aug 2021 04:18:59 +0000 (13:18 +0900)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 10 Aug 2021 03:10:58 +0000 (23:10 -0400)
commitf56f75c1dfd2520ecad2e5290857bd2ab4283ad6
tree99454b3e3c1f5038f439ae318c0c3ac9fc062004
parenta5a05612688a67c61b1060306b8f0c78fd2b6758
scsi: mpt3sas: Introduce sas_ncq_prio_supported sysfs sttribute

Similarly to AHCI, introduce the device sysfs attribute
sas_ncq_prio_supported to advertise if a SATA device supports the NCQ
priority feature. Without this new attribute, the user can only discover if
a SATA device supports NCQ priority by trying to enable the feature use
with the sas_ncq_prio_enable sysfs device attribute, which fails when the
device does not support high prioity commands.

Link: https://lore.kernel.org/r/20210807041859.579409-11-damien.lemoal@wdc.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_ctl.c