Skip to contentSkip to conversation

Move driver-api/{dcdbas,isapnp} to userspace-api/

PATCH Applied Vegard Nossum 4 participants 7 messages Dec 21, 2023 – Jan 3, 2024

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

cover Move driver-api/{dcdbas,isapnp} to userspace-api/

Hi,

Neither isapnp.rst nor dcdbas.rst document driver APIs; rather, they document /proc and /sys interfaces, respectively, which are userspace APIs.

I'm submitting this to the documentation tree -- Jaroslav and Stuart, is that OK with you? I suggest doing it that way since there is a tiny dependency between the patches (for the driver-api/index.rst and userspace-api/index.rst changes).

Testing: ran htmldocs, didn't see any warnings related to these.

Thanks,

Vegard

--

Vegard Nossum (2):
Documentation: move driver-api/isapnp to userspace-api/
Documentation: move driver-api/dcdbas to userspace-api/

 Documentation/driver-api/index.rst                     | 2 --
 Documentation/{driver-api => userspace-api}/dcdbas.rst | 0
 Documentation/userspace-api/index.rst                  | 2 ++
 Documentation/{driver-api => userspace-api}/isapnp.rst | 8 ++++----
 MAINTAINERS                                            | 4 ++--
 drivers/platform/x86/dell/Kconfig                      | 2 +-
 drivers/platform/x86/dell/dcdbas.c                     | 2 +-
 drivers/pnp/isapnp/Kconfig                             | 2 +-
 8 files changed, 11 insertions(+), 11 deletions(-)
 rename Documentation/{driver-api => userspace-api}/dcdbas.rst (100%)
 rename Documentation/{driver-api => userspace-api}/isapnp.rst (51%)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 Documentation: move driver-api/isapnp to userspace-api/

driver-api/isapnp documents /proc interfaces for interfacing directly with ISA Plug & Play devices, not any kind of API for kernel developers, and should thus also live under userspace-api/.

Also fix a few issues while we're at it.

Cc Jaroslav Kysela <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Alexandre Belloni <[email protected]>
Cc Bartlomiej Zolnierkiewicz <[email protected]>
---
 Documentation/driver-api/index.rst                     | 1 -
 Documentation/userspace-api/index.rst                  | 1 +
 Documentation/{driver-api => userspace-api}/isapnp.rst | 8 ++++----
 MAINTAINERS                                            | 2 +-
 drivers/pnp/isapnp/Kconfig                             | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
 rename Documentation/{driver-api => userspace-api}/isapnp.rst (51%)
Documentation/driver-api/index.rst +0 -1
index 9511db303446..b1b82ac1063b 100644
@@ -81,7 +81,6 @@ available subsections can be seen below.
    dcdbas
    eisa
    isa
-   isapnp
    io-mapping
    io_ordering
    generic-counter
Documentation/userspace-api/index.rst +1 -0
index 93174ffc7350..277b7a40ca91 100644
@@ -31,6 +31,7 @@ place where this information is gathered.
    vduse
    futex2
    tee
+   isapnp
 
 .. only::  subproject and html
 
Documentation/userspace-api/isapnp.rst renamed from Documentation/driver-api/isapnp.rst +4 -4
similarity index 51%
rename from Documentation/driver-api/isapnp.rst
rename to Documentation/userspace-api/isapnp.rst
index 8d0840ac847b..d6fceb19b8ae 100644
@@ -1,11 +1,11 @@
-==========================================================
-ISA Plug & Play support by Jaroslav Kysela <[email protected]>
-==========================================================
+=======================
+ISA Plug & Play support
+=======================
 
 Interface /proc/isapnp
 ======================
 
-The interface has been removed. See pnp.txt for more details.
+The interface was removed in kernel 2.5.53. See pnp.rst for more details.
 
 Interface /proc/bus/isapnp
 ==========================
MAINTAINERS +1 -1
index 0506d14340f7..7b6d2dbe4f1d 100644
@@ -11252,7 +11252,7 @@ F:	drivers/media/radio/radio-isa*
 ISAPNP
 M:	Jaroslav Kysela <[email protected]>
 S:	Maintained
-F:	Documentation/driver-api/isapnp.rst
+F:	Documentation/userspace-api/isapnp.rst
 F:	drivers/pnp/isapnp/
 F:	include/linux/isapnp.h
 
drivers/pnp/isapnp/Kconfig +1 -1
index d0479a563123..8b5f2e461a80 100644
@@ -7,6 +7,6 @@ config ISAPNP
 	depends on ISA || COMPILE_TEST
 	help
 	  Say Y here if you would like support for ISA Plug and Play devices.
-	  Some information is in <file:Documentation/driver-api/isapnp.rst>.
+	  Some information is in <file:Documentation/userspace-api/isapnp.rst>.
 
 	  If unsure, say Y.
Signature · 1 line
2.34.1
reviewer Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] Documentation: move driver-api/isapnp to userspace-api/

Quoted 11 lines · Vegard Nossum

driver-api/isapnp documents /proc interfaces for interfacing directly with ISA Plug & Play devices, not any kind of API for kernel developers, and should thus also live under userspace-api/.

Also fix a few issues while we're at it.

Cc Jaroslav Kysela <[email protected]>
Cc Mauro Carvalho Chehab <[email protected]>
Cc Alexandre Belloni <[email protected]>
Cc Bartlomiej Zolnierkiewicz <[email protected]>

Thanks.

Quoted 9 lines
---
 Documentation/driver-api/index.rst                     | 1 -
 Documentation/userspace-api/index.rst                  | 1 +
 Documentation/{driver-api => userspace-api}/isapnp.rst | 8 ++++----
 MAINTAINERS                                            | 2 +-
 drivers/pnp/isapnp/Kconfig                             | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)
 rename Documentation/{driver-api => userspace-api}/isapnp.rst (51%)
Signature · 3 lines
#Randy
https://people.kernel.org/tglx/notes-about-netiquette
https://subspace.kernel.org/etiquette.html
#3 lore raw

PATCH 2/2 Documentation: move driver-api/dcdbas to userspace-api/

In reply to Vegard Nossum

This file documents a sysfs interface that is intended for systems management software. It does NOT document any kind of kernel driver API. It is also not meant to be used directly by system administrators or users.

---
 Documentation/driver-api/index.rst                     | 1 -
 Documentation/{driver-api => userspace-api}/dcdbas.rst | 0
 Documentation/userspace-api/index.rst                  | 1 +
 MAINTAINERS                                            | 2 +-
 drivers/platform/x86/dell/Kconfig                      | 2 +-
 drivers/platform/x86/dell/dcdbas.c                     | 2 +-
 6 files changed, 4 insertions(+), 4 deletions(-)
 rename Documentation/{driver-api => userspace-api}/dcdbas.rst (100%)
Documentation/driver-api/index.rst +0 -1
index b1b82ac1063b..b38f81836118 100644
@@ -78,7 +78,6 @@ available subsections can be seen below.
    backlight/lp855x-driver.rst
    connector
    console
-   dcdbas
    eisa
    isa
    io-mapping
Documentation/userspace-api/dcdbas.rst renamed from Documentation/driver-api/dcdbas.rst +0 -0
similarity index 100%
rename from Documentation/driver-api/dcdbas.rst
rename to Documentation/userspace-api/dcdbas.rst
Documentation/userspace-api/index.rst +1 -0
index 277b7a40ca91..74bc0716432e 100644
@@ -32,6 +32,7 @@ place where this information is gathered.
    futex2
    tee
    isapnp
+   dcdbas
 
 .. only::  subproject and html
 
MAINTAINERS +1 -1
index 7b6d2dbe4f1d..aa9c4c7ebe71 100644
@@ -5901,7 +5901,7 @@ DELL SYSTEMS MANAGEMENT BASE DRIVER (dcdbas)
 M:	Stuart Hayes <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	Documentation/driver-api/dcdbas.rst
+F:	Documentation/userspace-api/dcdbas.rst
 F:	drivers/platform/x86/dell/dcdbas.*
 
 DELL WMI DDV DRIVER
drivers/platform/x86/dell/Kconfig +1 -1
index bdd78076b1d7..e712df67fa6b 100644
@@ -37,7 +37,7 @@ config DCDBAS
 	  Interrupts (SMIs) and Host Control Actions (system power cycle or
 	  power off after OS shutdown) on certain Dell systems.
 
-	  See <file:Documentation/driver-api/dcdbas.rst> for more details on the driver
+	  See <file:Documentation/userspace-api/dcdbas.rst> for more details on the driver
 	  and the Dell systems on which Dell systems management software makes
 	  use of this driver.
 
drivers/platform/x86/dell/dcdbas.c +1 -1
index 76787369d7fa..a60e35056387 100644
@@ -7,7 +7,7 @@
  *  and Host Control Actions (power cycle or power off after OS shutdown) on
  *  Dell systems.
  *
- *  See Documentation/driver-api/dcdbas.rst for more information.
+ *  See Documentation/userspace-api/dcdbas.rst for more information.
  *
  *  Copyright (C) 1995-2006 Dell Inc.
  */
Signature · 1 line
2.34.1
Acked-by on v1 2/2
#4 lore raw

Re: [PATCH 2/2] Documentation: move driver-api/dcdbas to userspace-api/

Hi,

Quoted 8 lines · Vegard Nossum

This file documents a sysfs interface that is intended for systems management software. It does NOT document any kind of kernel driver API. It is also not meant to be used directly by system administrators or users.

Thanks, patch looks good to me. Here is my ack for merging the drivers/platform/x86/dell/ bits through the Documentation tree:

Regards,

Hans

Quoted 77 lines
---
 Documentation/driver-api/index.rst                     | 1 -
 Documentation/{driver-api => userspace-api}/dcdbas.rst | 0
 Documentation/userspace-api/index.rst                  | 1 +
 MAINTAINERS                                            | 2 +-
 drivers/platform/x86/dell/Kconfig                      | 2 +-
 drivers/platform/x86/dell/dcdbas.c                     | 2 +-
 6 files changed, 4 insertions(+), 4 deletions(-)
 rename Documentation/{driver-api => userspace-api}/dcdbas.rst (100%)
Documentation/driver-api/index.rst +0 -1
index b1b82ac1063b..b38f81836118 100644
@@ -78,7 +78,6 @@ available subsections can be seen below.
    backlight/lp855x-driver.rst
    connector
    console
-   dcdbas
    eisa
    isa
    io-mapping
Documentation/userspace-api/dcdbas.rst renamed from Documentation/driver-api/dcdbas.rst +0 -0
similarity index 100%
rename from Documentation/driver-api/dcdbas.rst
rename to Documentation/userspace-api/dcdbas.rst
Documentation/userspace-api/index.rst +1 -0
index 277b7a40ca91..74bc0716432e 100644
@@ -32,6 +32,7 @@ place where this information is gathered.
    futex2
    tee
    isapnp
+   dcdbas
 
 .. only::  subproject and html
 
MAINTAINERS +1 -1
index 7b6d2dbe4f1d..aa9c4c7ebe71 100644
@@ -5901,7 +5901,7 @@ DELL SYSTEMS MANAGEMENT BASE DRIVER (dcdbas)
 M:	Stuart Hayes <[email protected]>
 L:	[email protected]
 S:	Maintained
-F:	Documentation/driver-api/dcdbas.rst
+F:	Documentation/userspace-api/dcdbas.rst
 F:	drivers/platform/x86/dell/dcdbas.*
 
 DELL WMI DDV DRIVER
drivers/platform/x86/dell/Kconfig +1 -1
index bdd78076b1d7..e712df67fa6b 100644
@@ -37,7 +37,7 @@ config DCDBAS
 	  Interrupts (SMIs) and Host Control Actions (system power cycle or
 	  power off after OS shutdown) on certain Dell systems.
 
-	  See <file:Documentation/driver-api/dcdbas.rst> for more details on the driver
+	  See <file:Documentation/userspace-api/dcdbas.rst> for more details on the driver
 	  and the Dell systems on which Dell systems management software makes
 	  use of this driver.
 
drivers/platform/x86/dell/dcdbas.c +1 -1
index 76787369d7fa..a60e35056387 100644
@@ -7,7 +7,7 @@
  *  and Host Control Actions (power cycle or power off after OS shutdown) on
  *  Dell systems.
  *
- *  See Documentation/driver-api/dcdbas.rst for more information.
+ *  See Documentation/userspace-api/dcdbas.rst for more information.
  *
  *  Copyright (C) 1995-2006 Dell Inc.
  */
reviewer Reviewed-by on v1 2/2
#5 lore raw

Re: [PATCH 2/2] Documentation: move driver-api/dcdbas to userspace-api/

In reply to Vegard Nossum
Quoted 8 lines · Vegard Nossum

This file documents a sysfs interface that is intended for systems management software. It does NOT document any kind of kernel driver API. It is also not meant to be used directly by system administrators or users.

Thanks.

Quoted 10 lines
---
 Documentation/driver-api/index.rst                     | 1 -
 Documentation/{driver-api => userspace-api}/dcdbas.rst | 0
 Documentation/userspace-api/index.rst                  | 1 +
 MAINTAINERS                                            | 2 +-
 drivers/platform/x86/dell/Kconfig                      | 2 +-
 drivers/platform/x86/dell/dcdbas.c                     | 2 +-
 6 files changed, 4 insertions(+), 4 deletions(-)
 rename Documentation/{driver-api => userspace-api}/dcdbas.rst (100%)
Signature · 3 lines
#Randy
https://people.kernel.org/tglx/notes-about-netiquette
https://subspace.kernel.org/etiquette.html
maintainer Applied
#6 lore raw
In reply to Vegard Nossum
Quoted 6 lines · Vegard Nossum

Hi,

Neither isapnp.rst nor dcdbas.rst document driver APIs; rather, they document /proc and /sys interfaces, respectively, which are userspace APIs.

Quoted 6 lines

I'm submitting this to the documentation tree -- Jaroslav and Stuart, is that OK with you? I suggest doing it that way since there is a tiny dependency between the patches (for the driver-api/index.rst and userspace-api/index.rst changes).

Testing: ran htmldocs, didn't see any warnings related to these.

Applied, thanks.

jon