linux/Documentation/scsi
Dongdong Hao 46f861d300 scsi: leapraid: Standardize NCQ priority sysfs attributes
Replace the earlier LeapRAID ncq_cmd_prio_enable attribute with the
standard sas_ncq_prio_supported and sas_ncq_prio_enable names documented in
Documentation/ABI/testing/sysfs-block-device, and rename the per-device NCQ
priority state to match.

The earlier ncq_cmd_prio_enable name has not yet been established as part
of a released userspace ABI, so no compatibility alias is needed.

For LeapRAID, sas_ncq_prio_enable is backed by the driver's per-device NCQ
priority state and controls whether RT-class I/O requests are issued with
command priority on supported SATA devices.

Update leapraid.rst to describe the standard attribute names and paths, and
clean up the surrounding RST text for consistency with kernel documentation
style.

Also switch the capability check from open-coded VPD page 0x89 parsing to
sas_ata_ncq_prio_supported(), use kstrtobool() for the enable path, and
expose the NCQ priority attributes only for SATA devices using LeapRAID's
target-private SAS device state.

Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Dongdong Hao <doubled@leap-io-kernel.com>
Reviewed-by: Hannes Reinecke <hare@kernel.org>
Link: https://patch.msgid.link/20260814090526.395704-1-doubled@leap-io-kernel.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
2026-08-23 21:57:41 -04:00
..
scsi_transport_srp scsi: docs: include SCSI Transport SRP diagram at the doc body 2020-03-11 23:07:57 -04:00
53c700.rst scsi: docs: convert 53c700.txt to ReST 2020-03-11 23:07:58 -04:00
aacraid.rst scsi: docs: convert aacraid.txt to ReST 2020-03-11 23:07:58 -04:00
advansys.rst scsi: advansys: docs: Eliminate duplicated word 2020-07-08 01:32:11 -04:00
aha152x.rst scsi: docs: convert aha152x.txt to ReST 2020-03-11 23:07:58 -04:00
aic7xxx.rst scsi: docs: convert aic7xxx.txt to ReST 2020-03-11 23:07:58 -04:00
aic79xx.rst scsi: docs: convert aic79xx.txt to ReST 2020-03-11 23:07:58 -04:00
arcmsr_spec.rst scsi: docs: arcmsr: Use a chapter heading for clarity 2023-05-22 18:36:07 -04:00
bfa.rst scsi: docs: convert bfa.txt to ReST 2020-03-11 23:07:58 -04:00
bnx2fc.rst scsi: docs: convert bnx2fc.txt to ReST 2020-03-11 23:07:59 -04:00
BusLogic.rst Buslogic: remove ISA support 2021-04-06 09:28:17 -06:00
ChangeLog.arcmsr
ChangeLog.ips
ChangeLog.lpfc Documentation: Fix typos 2023-08-18 11:29:03 -06:00
ChangeLog.megaraid scsi: Documentation: Correct spelling 2023-02-08 18:49:48 -05:00
ChangeLog.megaraid_sas scsi: Documentation: Correct spelling 2023-02-08 18:49:48 -05:00
ChangeLog.ncr53c8xx scsi: Documentation: Correct spelling 2023-02-08 18:49:48 -05:00
ChangeLog.sym53c8xx Documentation: Fix typos and grammatical errors 2026-01-16 11:13:45 -07:00
ChangeLog.sym53c8xx_2 scsi: Documentation: Correct spelling 2023-02-08 18:49:48 -05:00
cxgb3i.rst scsi: docs: convert cxgb3i.txt to ReST 2020-03-11 23:07:59 -04:00
dc395x.rst scsi: docs: dc395x: Shorten the chapter heading 2023-05-22 18:36:07 -04:00
dpti.rst scsi: docs: convert dpti.txt to ReST 2020-03-11 23:07:59 -04:00
FlashPoint.rst scsi: docs: convert FlashPoint.txt to ReST 2020-03-11 23:07:59 -04:00
g_NCR5380.rst scsi: docs: g_NCR5380: Shorten chapter heading 2023-05-22 18:36:07 -04:00
hpsa.rst scsi: docs: convert hpsa.txt to ReST 2020-03-11 23:08:00 -04:00
hptiop.rst scsi: docs: convert hptiop.txt to ReST 2020-03-11 23:08:00 -04:00
index.rst scsi: leapraid: Add driver documentation 2026-08-07 11:56:30 -04:00
leapraid.rst scsi: leapraid: Standardize NCQ priority sysfs attributes 2026-08-23 21:57:41 -04:00
libsas.rst scsi: libsas: Delete lldd_clear_aca callback 2022-02-19 15:59:34 -05:00
LICENSE.FlashPoint
link_power_management_policy.rst scsi: docs: Add description for missing options of link_power_management_policy 2026-01-20 14:58:54 -07:00
lpfc.rst scsi: docs: convert lpfc.txt to ReST 2020-03-11 23:08:00 -04:00
megaraid.rst scsi: docs: megaraid: Clarify chapter heading 2023-05-22 18:36:07 -04:00
ncr53c8xx.rst scsi: docs: ncr53c8xx: Shorten chapter heading 2023-05-22 18:36:07 -04:00
NinjaSCSI.rst scsi: docs: convert NinjaSCSI.txt to ReST 2020-03-11 23:08:01 -04:00
ppa.rst scsi: docs: convert ppa.txt to ReST 2020-03-11 23:08:01 -04:00
qlogicfas.rst scsi: docs: convert qlogicfas.txt to ReST 2020-03-11 23:08:01 -04:00
scsi_eh.rst scsi: documentation: scsi_eh: updates for EH changes 2025-01-02 13:10:54 -05:00
scsi_fc_transport.rst scsi: fc_transport: docs: Add documentation for FC Remote Ports 2025-06-09 21:49:26 -04:00
scsi_mid_low_api.rst scsi: Change the return type of the .queuecommand() callback 2026-01-23 21:32:34 -05:00
scsi-changer.rst scsi: docs: scsi-changer: Shorten the chapter heading 2023-05-22 18:36:07 -04:00
scsi-generic.rst scsi: docs: scsi-generic: Multiple cleanups 2023-05-22 18:36:07 -04:00
scsi-parameters.rst SCSI misc on 20210219 2021-02-22 10:24:58 -08:00
scsi.rst scsi: docs: introduction: Multiple cleanups 2023-05-22 18:36:07 -04:00
sd-parameters.rst scsi: docs: convert sd-parameters.txt to ReST 2020-03-11 23:08:02 -04:00
smartpqi.rst scsi: smartpqi: Update documentation 2020-09-02 22:49:06 -04:00
st.rst scsi: st: Fix typo in documentation 2026-05-14 21:59:19 -04:00
sym53c8xx_2.rst scsi: docs: sym53c8xx_2: Shorten chapter heading 2023-05-22 18:36:07 -04:00
sym53c500_cs.rst scsi: docs: convert sym53c500_cs.txt to ReST 2020-03-11 23:08:03 -04:00
tcm_qla2xxx.rst scsi: Documentation: Correct spelling 2023-02-08 18:49:48 -05:00
ufs.rst scsi: Documentation: Correct spelling 2023-02-08 18:49:48 -05:00
wd719x.rst scsi: docs: convert wd719x.txt to ReST 2020-03-11 23:08:03 -04:00