Skip to contentSkip to conversation

staging: Pull in staging drivers docs into documentation tree

PATCH In review Bagas Sanjaya 2 participants 3 messages Nov 1, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: Pull in staging drivers docs into documentation tree

Some staging drivers have documentation that are spread out in drivers/staging/*/Documentation/. Pull them into kernel docs tree by using the same technique as in 1e9ddbb2cd346e ("docs: Pull LKMM documentation into dev-tools book"): wrapping them with kernel-include::
directive as literal include.

---
 .../staging-drivers/atomisp-notes.rst         | 10 ++++++++++
 .../staging-drivers/greybus-firmware.rst      | 12 ++++++++++++
 Documentation/staging-drivers/iio/index.rst   | 15 +++++++++++++++
 .../staging-drivers/iio/inkernel.rst          | 12 ++++++++++++
 Documentation/staging-drivers/iio/sysfs.rst   | 19 +++++++++++++++++++
 Documentation/staging-drivers/index.rst       | 13 +++++++++++++
 Documentation/staging-drivers/most/abi.rst    | 12 ++++++++++++
 .../staging-drivers/most/driver_usage.rst     | 12 ++++++++++++
 Documentation/staging-drivers/most/index.rst  | 10 ++++++++++
 Documentation/subsystem-apis.rst              |  1 +
 MAINTAINERS                                   |  1 +
 11 files changed, 117 insertions(+)
 create mode 100644 Documentation/staging-drivers/atomisp-notes.rst
 create mode 100644 Documentation/staging-drivers/greybus-firmware.rst
 create mode 100644 Documentation/staging-drivers/iio/index.rst
 create mode 100644 Documentation/staging-drivers/iio/inkernel.rst
 create mode 100644 Documentation/staging-drivers/iio/sysfs.rst
 create mode 100644 Documentation/staging-drivers/index.rst
 create mode 100644 Documentation/staging-drivers/most/abi.rst
 create mode 100644 Documentation/staging-drivers/most/driver_usage.rst
 create mode 100644 Documentation/staging-drivers/most/index.rst
Documentation/staging-drivers/atomisp-notes.rst new file +10 -0
new file mode 100644
index 00000000000000..72ebb8970a067d
@@ -0,0 +1,10 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=====================================
+Notes on working with atomisp drivers
+=====================================
+
+Literal include of ``drivers/staging/media/atomisp/notes.txt``.
+
+.. kernel-include:: drivers/staging/media/atomisp/notes.txt
+   :literal:
Documentation/staging-drivers/greybus-firmware.rst new file +12 -0
new file mode 100644
index 00000000000000..8e70942366f772
@@ -0,0 +1,12 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+===========================
+Greybus firmware management
+===========================
+
+Literal include of ``drivers/staging/greybus/Documentation/firmware/firmware-management``.
+
+----
+
+.. kernel-include:: drivers/staging/greybus/Documentation/firmware/firmware-management
+   :literal:
Documentation/staging-drivers/iio/index.rst new file +15 -0
new file mode 100644
index 00000000000000..a6fccb8c8673d7
@@ -0,0 +1,15 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=========================
+Industrial I/O in Staging
+=========================
+
+.. note::
+
+   Refer to Documentation/iio/index.rst for IIO subsystem documentation in
+   the kernel proper.
+
+.. toctree::
+
+   inkernel
+   sysfs
Documentation/staging-drivers/iio/inkernel.rst new file +12 -0
new file mode 100644
index 00000000000000..0b7457bc4e4ad6
@@ -0,0 +1,12 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+============================================
+Industrial I/O Subsystem in kernel consumers
+============================================
+
+Literal include of ``drivers/staging/iio/Documentation/inkernel.txt``.
+
+----
+
+.. kernel-include:: drivers/staging/iio/Documentation/inkernel.txt
+   :literal:
Documentation/staging-drivers/iio/sysfs.rst new file +19 -0
new file mode 100644
index 00000000000000..9a069f1c5e669a
@@ -0,0 +1,19 @@
+.. SPDX-License-Identifer: GPL-2.0
+
+===============
+IIO ABI symbols
+===============
+
+Literal include of ``drivers/staging/iio/Documentation/sysfs-bus-iio-adc-ad7280a``.
+
+----
+
+.. kernel-include:: drivers/staging/iio/Documentation/sysfs-bus-iio-adc-ad7280a
+   :literal:
+
+----
+
+Literal include of ``drivers/staging/iio/Documentation/sysfs-bus-iio-dds``.
+
+.. kernel-include:: drivers/staging/iio/Documentation/sysfs-bus-iio-dds
+   :literal:
Documentation/staging-drivers/index.rst new file +13 -0
new file mode 100644
index 00000000000000..7dfcf4ba32ec13
@@ -0,0 +1,13 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=============================
+Staging Drivers Documentation
+=============================
+
+.. toctree::
+   :maxdepth: 2
+
+   greybus-firmware
+   iio/index
+   atomisp-notes
+   most/index
Documentation/staging-drivers/most/abi.rst new file +12 -0
new file mode 100644
index 00000000000000..13f14bcd9a1b7d
@@ -0,0 +1,12 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+================
+MOST ABI Symbols
+================
+
+Literal include of ``drivers/staging/most/Documentation/ABI/sysfs-class-most.txt``.
+
+----
+
+.. kernel-include:: drivers/staging/most/Documentation/ABI/sysfs-class-most.txt
+   :literal:
Documentation/staging-drivers/most/driver_usage.rst new file +12 -0
new file mode 100644
index 00000000000000..c22534b0e280a2
@@ -0,0 +1,12 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=================
+MOST Driver Usage
+=================
+
+Literal include of ``drivers/staging/most/Documentation/driver_usage.txt``.
+
+----
+
+.. kernel-include:: drivers/staging/most/Documentation/driver_usage.txt
+   :literal:
Documentation/staging-drivers/most/index.rst new file +10 -0
new file mode 100644
index 00000000000000..29ffb1e6c06166
@@ -0,0 +1,10 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+=======================================
+Media Oriented Systems Transport (MOST)
+=======================================
+
+.. toctree::
+
+   driver_usage
+   abi
Documentation/subsystem-apis.rst +1 -0
index ff4fe8c936c8ba..08fbf043f9f7e1 100644
@@ -91,3 +91,4 @@ Other subsystems
    peci/index
    wmi/index
    tee/index
+   staging-drivers/index
MAINTAINERS +1 -0
index 3da2c26a796b82..04dd4dd9ed9d22 100644
@@ -24440,6 +24440,7 @@ L:	[email protected]
 S:	Supported
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
 F:	drivers/staging/
+F:	Documentation/staging-drivers/
 
 STANDALONE CACHE CONTROLLER DRIVERS
 M:	Conor Dooley <[email protected]>

base-commit: d68eb9096fb065cc0cb5218ae651f54b08de5831

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#1 lore raw
Quoted 7 lines · Bagas Sanjaya

Some staging drivers have documentation that are spread out in drivers/staging/*/Documentation/. Pull them into kernel docs tree by using the same technique as in 1e9ddbb2cd346e ("docs: Pull LKMM documentation into dev-tools book"): wrapping them with kernel-include::
directive as literal include.

No, please do not do this. staging drivers are "self contained" and do not spread out into the rest of the kernel. If/when the driver moves out of staging, then it can be included in the normal kernel documentation builds and the rest of the stuff (i.e. include/ locations and the like.)

So leave them alone. Documentation does not need to be built for staging drivers, there are much bigger things that need to be done for them instead.

thanks,

greg k-h

#2 lore raw
Quoted 15 lines · Greg Kroah-Hartman
Quoted 7 lines · Bagas Sanjaya

Some staging drivers have documentation that are spread out in drivers/staging/*/Documentation/. Pull them into kernel docs tree by using the same technique as in 1e9ddbb2cd346e ("docs: Pull LKMM documentation into dev-tools book"): wrapping them with kernel-include::
directive as literal include.

No, please do not do this. staging drivers are "self contained" and do not spread out into the rest of the kernel. If/when the driver moves out of staging, then it can be included in the normal kernel documentation builds and the rest of the stuff (i.e. include/ locations and the like.)

Quoted 3 lines

So leave them alone. Documentation does not need to be built for staging drivers, there are much bigger things that need to be done for them instead.

OK, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara