Skip to contentSkip to conversation

Documentation: Add category of subsystem-apis

PATCH Applied Manuel Ebner 3 participants 5 messages Nov 5 – Nov 12 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: Add category of subsystem-apis

Add Bus and Communication category to reduce number of items in 'Other subsystems'.

---
 Documentation/subsystem-apis.rst | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)
Documentation/subsystem-apis.rst +14 -7
index b1ad48bb40..4e886897d3 100644
@@ -24,6 +24,20 @@ Core subsystems
    timers/index
    locking/index
 
+Bus and Communication interfaces
+--------------------------------
+
+.. toctree::
+   :maxdepth: 1
+
+   i2c/index
+   pcmcia/index
+   spi/index
+   w1/index
+   usb/index
+   PCI/index
+   peci/index
+
 Human interfaces
 ----------------
 
@@ -72,11 +86,7 @@ Other subsystems
    cpu-freq/index
    edac/index
    fpga/index
-   i2c/index
    iio/index
-   pcmcia/index
-   spi/index
-   w1/index
    watchdog/index
    virt/index
    hwmon/index
@@ -84,9 +94,6 @@ Other subsystems
    security/index
    crypto/index
    bpf/index
-   usb/index
-   PCI/index
    misc-devices/index
-   peci/index
    wmi/index
    tee/index
Signature · 1 line
2.55.0
reviewer Reviewed-by Tested-by on v1 1/1
#1 lore raw
Quoted 4 lines · Manuel Ebner

Add Bus and Communication category to reduce number of items in 'Other subsystems'.

This LGTM but at first I was wondering why I2C is listed here but I3C is not. I3C is listed under driver-api/index.html. So are some other buses.

That is a little confusing to me. ISTM that we need so *not* have 2 places listing bus documentation...

Anyway, this is a good start on that. It could be merged as is.

Quoted 51 lines
---
 Documentation/subsystem-apis.rst | 21 ++++++++++++++-------
 1 file changed, 14 insertions(+), 7 deletions(-)
Documentation/subsystem-apis.rst +14 -7
index b1ad48bb40..4e886897d3 100644
@@ -24,6 +24,20 @@ Core subsystems
    timers/index
    locking/index
 
+Bus and Communication interfaces
+--------------------------------
+
+.. toctree::
+   :maxdepth: 1
+
+   i2c/index
+   pcmcia/index
+   spi/index
+   w1/index
+   usb/index
+   PCI/index
+   peci/index
+
 Human interfaces
 ----------------
 
@@ -72,11 +86,7 @@ Other subsystems
    cpu-freq/index
    edac/index
    fpga/index
-   i2c/index
    iio/index
-   pcmcia/index
-   spi/index
-   w1/index
    watchdog/index
    virt/index
    hwmon/index
@@ -84,9 +94,6 @@ Other subsystems
    security/index
    crypto/index
    bpf/index
-   usb/index
-   PCI/index
    misc-devices/index
-   peci/index
    wmi/index
    tee/index
Signature · 1 line
~Randy
#2 lore raw

Hi Randy,

Quoted 9 lines · Randy Dunlap
Quoted 4 lines · Manuel Ebner

Add Bus and Communication category to reduce number of items in 'Other subsystems'.

driver-api/index.html
This LGTM but at first I was wondering why I2C is listed here but I3C is not.  I3C is listed under driver-api/index.html. So are some other buses.

I think the actual reason is: There is Documentation/i2c/
but no Documentation/i3c/ . subsystem-apis.rst links to Documentation/<name>/index.rst , core-api/index.rst links to Documentation/core-api/<name>.rst .

however there is driver-api/i2c.rst and driver-api/i3c/index.rst. Thats why Documentation/driver-api/index.rst has this:

Quoted 7 lines

Bus-level documentation

    ...
    I3C subsystem
    ...

Subsystem-specific APIs
...
I2C and SMBus Subsystem

The structure is weird.

driver-api/index's justification is clearly stated, subsystem-apis's isn't. What is it?

Quoted 2 lines

That is a little confusing to me. ISTM that we need so *not* have 2 places listing bus documentation...

I'm not sure about that. If the files serve to different people/roles both should be kept, adapted and refined.

Quoted 4 lines

Anyway, this is a good start on that. It could be merged as is.

Thanks
Manuel

Quoted 52 lines
Quoted 52 lines

---
 Documentation/subsystem-apis.rst | 21 ++++++++++++++-------

 1 file changed, 14 insertions(+), 7 deletions(-)
Documentation/subsystem-apis.rst +0 -0
index b1ad48bb40..4e886897d3 100644
@@ -24,6 +24,20 @@ Core subsystems

    timers/index
    locking/index

Documentation/subsystem-apis.rst +14 -0
+Bus and Communication interfaces
+--------------------------------
+
+.. toctree::
+   :maxdepth: 1
+
+   i2c/index
+   pcmcia/index
+   spi/index
+   w1/index
+   usb/index
+   PCI/index
+   peci/index
+

 Human interfaces
 ----------------

Documentation/subsystem-apis.rst +0 -0
@@ -72,11 +86,7 @@ Other subsystems

    cpu-freq/index
    edac/index
    fpga/index
-   i2c/index
    iio/index
-   pcmcia/index
-   spi/index
-   w1/index
    watchdog/index
    virt/index
    hwmon/index

Documentation/subsystem-apis.rst +0 -0
@@ -84,9 +94,6 @@ Other subsystems

    security/index
    crypto/index
    bpf/index
-   usb/index
-   PCI/index
    misc-devices/index
-   peci/index
    wmi/index
    tee/index

reviewer
#3 lore raw
Quoted 27 lines · Manuel Ebner

Hi Randy,

Quoted 9 lines · Randy Dunlap
Quoted 4 lines · Manuel Ebner

Add Bus and Communication category to reduce number of items in 'Other subsystems'.

driver-api/index.html
This LGTM but at first I was wondering why I2C is listed here but I3C is not.  I3C is listed under driver-api/index.html. So are some other buses.

I think the actual reason is: There is Documentation/i2c/
but no Documentation/i3c/ . subsystem-apis.rst links to Documentation/<name>/index.rst , core-api/index.rst links to Documentation/core-api/<name>.rst .

however there is driver-api/i2c.rst and driver-api/i3c/index.rst. Thats why Documentation/driver-api/index.rst has this:

Quoted 7 lines

Bus-level documentation

    ...
    I3C subsystem
    ...

Subsystem-specific APIs
...
I2C and SMBus Subsystem

Quoted 4 lines

The structure is weird.

driver-api/index's justification is clearly stated, subsystem-apis's isn't. What is it?

"... how specific kernel subsystems work from the point of view of a kernel developer."

so it seems to be kernel internals and maybe some "theory of operation" type documentation.

Quoted 67 lines
Quoted 3 lines

That is a little confusing to me. ISTM that we need so *not* have 2 places listing bus documentation...

I'm not sure about that. If the files serve to different people/roles both should be kept, adapted and refined.

Quoted 4 lines

Anyway, this is a good start on that. It could be merged as is.

Thanks
Manuel

Quoted 52 lines
Quoted 52 lines

---
 Documentation/subsystem-apis.rst | 21 ++++++++++++++-------

 1 file changed, 14 insertions(+), 7 deletions(-)
Documentation/subsystem-apis.rst +0 -0
index b1ad48bb40..4e886897d3 100644
@@ -24,6 +24,20 @@ Core subsystems

    timers/index
    locking/index

Documentation/subsystem-apis.rst +14 -0
+Bus and Communication interfaces
+--------------------------------
+
+.. toctree::
+   :maxdepth: 1
+
+   i2c/index
+   pcmcia/index
+   spi/index
+   w1/index
+   usb/index
+   PCI/index
+   peci/index
+

 Human interfaces
 ----------------

Documentation/subsystem-apis.rst +0 -0
@@ -72,11 +86,7 @@ Other subsystems

    cpu-freq/index
    edac/index
    fpga/index
-   i2c/index
    iio/index
-   pcmcia/index
-   spi/index
-   w1/index
    watchdog/index
    virt/index
    hwmon/index

Documentation/subsystem-apis.rst +0 -0
@@ -84,9 +94,6 @@ Other subsystems

    security/index
    crypto/index
    bpf/index
-   usb/index
-   PCI/index
    misc-devices/index
-   peci/index
    wmi/index
    tee/index

Signature · 1 line
~Randy