Skip to content

Commit ff1efa7

Browse files
mchehabmartinkpetersen
authored andcommitted
scsi: docs: convert smartpqi.txt to ReST
Link: https://lore.kernel.org/r/00b398efb7cfc667b046fbef92a84f1d3c33eb64.1583136624.git.mchehab+huawei@kernel.org Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent d835971 commit ff1efa7

4 files changed

Lines changed: 28 additions & 29 deletions

File tree

‎Documentation/scsi/index.rst‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,6 @@ Linux SCSI Subsystem
3939
scsi-parameters
4040
scsi
4141
sd-parameters
42+
smartpqi
4243

4344
scsi_transport_srp/figures
Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
.. SPDX-License-Identifier: GPL-2.0
12
3+
=====================================
24
SMARTPQI - Microsemi Smart PQI Driver
3-
-----------------------------------------
5+
=====================================
46

57
This file describes the smartpqi SCSI driver for Microsemi
68
(http://www.microsemi.com) PQI controllers. The smartpqi driver
@@ -16,65 +18,61 @@ For Microsemi smartpqi controller support, enable the smartpqi driver
1618
when configuring the kernel.
1719

1820
For more information on the PQI Queuing Interface, please see:
19-
http://www.t10.org/drafts.htm
20-
http://www.t10.org/members/w_pqi2.htm
2121

22-
Supported devices:
23-
------------------
22+
- http://www.t10.org/drafts.htm
23+
- http://www.t10.org/members/w_pqi2.htm
24+
25+
Supported devices
26+
=================
2427
<Controller names to be added as they become publicly available.>
2528

2629
smartpqi specific entries in /sys
27-
-----------------------------
30+
=================================
2831

29-
smartpqi host attributes:
30-
-------------------------
31-
/sys/class/scsi_host/host*/rescan
32-
/sys/class/scsi_host/host*/driver_version
32+
smartpqi host attributes
33+
------------------------
34+
- /sys/class/scsi_host/host*/rescan
35+
- /sys/class/scsi_host/host*/driver_version
3336

3437
The host rescan attribute is a write only attribute. Writing to this
3538
attribute will trigger the driver to scan for new, changed, or removed
3639
devices and notify the SCSI mid-layer of any changes detected.
3740

3841
The version attribute is read-only and will return the driver version
3942
and the controller firmware version.
40-
For example:
43+
For example::
44+
4145
driver: 0.9.13-370
4246
firmware: 0.01-522
4347

44-
smartpqi sas device attributes
45-
------------------------------
48+
smartpqi sas device attributes
49+
------------------------------
4650
HBA devices are added to the SAS transport layer. These attributes are
4751
automatically added by the SAS transport layer.
4852

4953
/sys/class/sas_device/end_device-X:X/sas_address
5054
/sys/class/sas_device/end_device-X:X/enclosure_identifier
5155
/sys/class/sas_device/end_device-X:X/scsi_target_id
5256

53-
smartpqi specific ioctls:
54-
-------------------------
57+
smartpqi specific ioctls
58+
========================
5559

5660
For compatibility with applications written for the cciss protocol.
5761

58-
CCISS_DEREGDISK
59-
CCISS_REGNEWDISK
60-
CCISS_REGNEWD
61-
62-
The above three ioctls all do exactly the same thing, which is to cause the driver
63-
to rescan for new devices. This does exactly the same thing as writing to the
64-
smartpqi specific host "rescan" attribute.
62+
CCISS_DEREGDISK, CCISS_REGNEWDISK, CCISS_REGNEWD
63+
The above three ioctls all do exactly the same thing, which is to cause the driver
64+
to rescan for new devices. This does exactly the same thing as writing to the
65+
smartpqi specific host "rescan" attribute.
6566

6667
CCISS_GETPCIINFO
67-
6868
Returns PCI domain, bus, device and function and "board ID" (PCI subsystem ID).
6969

7070
CCISS_GETDRIVVER
71+
Returns driver version in three bytes encoded as::
7172

72-
Returns driver version in three bytes encoded as:
73-
(DRIVER_MAJOR << 28) | (DRIVER_MINOR << 24) | (DRIVER_RELEASE << 16) | DRIVER_REVISION;
73+
(DRIVER_MAJOR << 28) | (DRIVER_MINOR << 24) | (DRIVER_RELEASE << 16) | DRIVER_REVISION;
7474

7575
CCISS_PASSTHRU
76-
7776
Allows "BMIC" and "CISS" commands to be passed through to the Smart Storage Array.
7877
These are used extensively by the SSA Array Configuration Utility, SNMP storage
7978
agents, etc.
80-

‎MAINTAINERS‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11092,7 +11092,7 @@ F: drivers/scsi/smartpqi/Kconfig
1109211092
F: drivers/scsi/smartpqi/Makefile
1109311093
F: include/linux/cciss*.h
1109411094
F: include/uapi/linux/cciss*.h
11095-
F: Documentation/scsi/smartpqi.txt
11095+
F: Documentation/scsi/smartpqi.rst
1109611096

1109711097
MICROSEMI ETHERNET SWITCH DRIVER
1109811098
M: Alexandre Belloni <alexandre.belloni@bootlin.com>

‎drivers/scsi/smartpqi/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ config SCSI_SMARTPQI
5353
Note: the aacraid driver will not manage a smartpqi
5454
controller. You need to enable smartpqi for smartpqi
5555
controllers. For more information, please see
56-
Documentation/scsi/smartpqi.txt
56+
Documentation/scsi/smartpqi.rst

0 commit comments

Comments
 (0)