Skip to content

Commit

Permalink
docs: driver-api: add a series of orphaned documents
Browse files Browse the repository at this point in the history
There are lots of documents under Documentation/*.txt and a few other
orphan documents elsehwere that belong to the driver-API book.

Move them to their right place.

Reviewed-by: Cornelia Huck <[email protected]> # vfio-related parts
Acked-by: Logan Gunthorpe <[email protected]> # switchtec
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
  • Loading branch information
mchehab committed Jul 15, 2019
1 parent 4f4cfa6 commit baa293e
Show file tree
Hide file tree
Showing 49 changed files with 71 additions and 45 deletions.
2 changes: 1 addition & 1 deletion Documentation/ABI/removed/sysfs-class-rfkill
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rfkill - radio frequency (RF) connector kill switch support

For details to this subsystem look at Documentation/rfkill.txt.
For details to this subsystem look at Documentation/driver-api/rfkill.rst.

What: /sys/class/rfkill/rfkill[0-9]+/claim
Date: 09-Jul-2007
Expand Down
2 changes: 1 addition & 1 deletion Documentation/ABI/stable/sysfs-class-rfkill
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rfkill - radio frequency (RF) connector kill switch support

For details to this subsystem look at Documentation/rfkill.txt.
For details to this subsystem look at Documentation/driver-api/rfkill.rst.

For the deprecated /sys/class/rfkill/*/claim knobs of this interface look in
Documentation/ABI/removed/sysfs-class-rfkill.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/ABI/testing/sysfs-class-switchtec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
switchtec - Microsemi Switchtec PCI Switch Management Endpoint

For details on this subsystem look at Documentation/switchtec.txt.
For details on this subsystem look at Documentation/driver-api/switchtec.rst.

What: /sys/class/switchtec
Date: 05-Jan-2017
Expand Down
2 changes: 1 addition & 1 deletion Documentation/admin-guide/kernel-parameters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@
edid/1680x1050.bin, or edid/1920x1080.bin is given
and no file with the same name exists. Details and
instructions how to build your own EDID data are
available in Documentation/EDID/howto.rst. An EDID
available in Documentation/driver-api/edid.rst. An EDID
data set will only be used for a particular connector,
if its name and a colon are prepended to the EDID
name. Each connector may use a unique EDID data
Expand Down
6 changes: 3 additions & 3 deletions Documentation/admin-guide/laptops/thinkpad-acpi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ Sysfs notes
2010.

rfkill controller switch "tpacpi_bluetooth_sw": refer to
Documentation/rfkill.txt for details.
Documentation/driver-api/rfkill.rst for details.


Video output control -- /proc/acpi/ibm/video
Expand Down Expand Up @@ -1406,7 +1406,7 @@ Sysfs notes
2010.

rfkill controller switch "tpacpi_wwan_sw": refer to
Documentation/rfkill.txt for details.
Documentation/driver-api/rfkill.rst for details.


EXPERIMENTAL: UWB
Expand All @@ -1426,7 +1426,7 @@ Sysfs notes
^^^^^^^^^^^

rfkill controller switch "tpacpi_uwb_sw": refer to
Documentation/rfkill.txt for details.
Documentation/driver-api/rfkill.rst for details.

Adaptive keyboard
-----------------
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:orphan:
.. SPDX-License-Identifier: GPL-2.0
================
Kernel Connector
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:orphan:
.. SPDX-License-Identifier: GPL-2.0
===============
Console Drivers
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:orphan:
.. SPDX-License-Identifier: GPL-2.0
====
EDID
Expand Down
File renamed without changes.
26 changes: 26 additions & 0 deletions Documentation/driver-api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,33 @@ available subsections can be seen below.
fpga/index
acpi/index
backlight/lp855x-driver.rst
bt8xxgpio
connector
console
dcdbas
dell_rbu
edid
eisa
isa
isapnp
generic-counter
lightnvm-pblk
men-chameleon-bus
ntb
nvmem
parport-lowlevel
pti_intel_mid
pwm
rfkill
sgi-ioc4
sm501
smsc_ece1099
switchtec
sync_file
vfio-mediated-device
vfio
xillybus
zorro

.. only:: subproject and html

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:orphan:
.. SPDX-License-Identifier: GPL-2.0
===============
NVMEM Subsystem
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:orphan:
.. SPDX-License-Identifier: GPL-2.0
=============
Intel MID PTI
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,6 @@ the following configuration settings:
NT EP BAR 2 will be dynamically configured as a Direct Window, and
the configuration file does not need to configure it explicitly.

Please refer to Documentation/ntb.txt in Linux source tree for an overall
Please refer to Documentation/driver-api/ntb.rst in Linux source tree for an overall
understanding of the Linux NTB stack. ntb_hw_switchtec works as an NTB
Hardware Driver in this stack.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ card.
References
==========

1. See Documentation/vfio.txt for more information on VFIO.
1. See Documentation/driver-api/vfio.rst for more information on VFIO.
2. struct mdev_driver in include/linux/mdev.h
3. struct mdev_parent_ops in include/linux/mdev.h
4. struct vfio_iommu_driver_ops in include/linux/vfio.h
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Documentation/fb/fbcon.rst
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ the hardware. Thus, in a VGA console::
Assuming the VGA driver can be unloaded, one must first unbind the VGA driver
from the console layer before unloading the driver. The VGA driver cannot be
unloaded if it is still bound to the console layer. (See
Documentation/console/console.rst for more information).
Documentation/driver-api/console.rst for more information).

This is more complicated in the case of the framebuffer console (fbcon),
because fbcon is an intermediate layer between the console and the drivers::
Expand All @@ -204,7 +204,7 @@ fbcon. Thus, there is no need to explicitly unbind the fbdev drivers from
fbcon.

So, how do we unbind fbcon from the console? Part of the answer is in
Documentation/console/console.rst. To summarize:
Documentation/driver-api/console.rst. To summarize:

Echo a value to the bind file that represents the framebuffer console
driver. So assuming vtcon1 represents fbcon, then::
Expand Down
6 changes: 3 additions & 3 deletions Documentation/s390/vfio-ccw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ every detail. More information/reference could be found here:
qemu/hw/s390x/css.c

For vfio mediated device framework:
- Documentation/vfio-mediated-device.txt
- Documentation/driver-api/vfio-mediated-device.rst

Motivation of vfio-ccw
----------------------
Expand Down Expand Up @@ -322,5 +322,5 @@ Reference
2. ESA/390 Common I/O Device Commands manual (IBM Form. No. SA22-7204)
3. https://en.wikipedia.org/wiki/Channel_I/O
4. Documentation/s390/cds.rst
5. Documentation/vfio.txt
6. Documentation/vfio-mediated-device.txt
5. Documentation/driver-api/vfio.rst
6. Documentation/driver-api/vfio-mediated-device.rst
2 changes: 1 addition & 1 deletion Documentation/w1/w1.netlink
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ acknowledge number is set to seq+1.
Additional documantion, source code examples.
============================================

1. Documentation/connector
1. Documentation/driver-api/connector.rst
2. http://www.ioremap.net/archive/w1
This archive includes userspace application w1d.c which uses
read/write/search commands for all master/slave devices found on the bus.
22 changes: 11 additions & 11 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -4642,7 +4642,7 @@ DELL SYSTEMS MANAGEMENT BASE DRIVER (dcdbas)
M: Stuart Hayes <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/dcdbas.txt
F: Documentation/driver-api/dcdbas.rst
F: drivers/platform/x86/dcdbas.*

DELL WMI NOTIFICATIONS DRIVER
Expand Down Expand Up @@ -8462,7 +8462,7 @@ F: drivers/irqchip/
ISA
M: William Breathitt Gray <[email protected]>
S: Maintained
F: Documentation/isa.txt
F: Documentation/driver-api/isa.rst
F: drivers/base/isa.c
F: include/linux/isa.h

Expand All @@ -8477,7 +8477,7 @@ F: drivers/media/radio/radio-isa*
ISAPNP
M: Jaroslav Kysela <[email protected]>
S: Maintained
F: Documentation/isapnp.txt
F: Documentation/driver-api/isapnp.rst
F: drivers/pnp/isapnp/
F: include/linux/isapnp.h

Expand Down Expand Up @@ -10353,7 +10353,7 @@ M: Johannes Thumshirn <[email protected]>
S: Maintained
F: drivers/mcb/
F: include/linux/mcb.h
F: Documentation/men-chameleon-bus.txt
F: Documentation/driver-api/men-chameleon-bus.rst

MEN F21BMC (Board Management Controller)
M: Andreas Werner <[email protected]>
Expand Down Expand Up @@ -12070,7 +12070,7 @@ F: drivers/parport/
F: include/linux/parport*.h
F: drivers/char/ppdev.c
F: include/uapi/linux/ppdev.h
F: Documentation/parport*.txt
F: Documentation/driver-api/parport*.rst

PARAVIRT_OPS INTERFACE
M: Juergen Gross <[email protected]>
Expand Down Expand Up @@ -12245,7 +12245,7 @@ M: Kurt Schwemmer <[email protected]>
M: Logan Gunthorpe <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/switchtec.txt
F: Documentation/driver-api/switchtec.rst
F: Documentation/ABI/testing/sysfs-class-switchtec
F: drivers/pci/switch/switchtec*
F: include/uapi/linux/switchtec_ioctl.h
Expand Down Expand Up @@ -13006,7 +13006,7 @@ M: Thierry Reding <[email protected]>
L: [email protected]
S: Maintained
T: git git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm.git
F: Documentation/pwm.txt
F: Documentation/driver-api/pwm.rst
F: Documentation/devicetree/bindings/pwm/
F: include/linux/pwm.h
F: drivers/pwm/
Expand Down Expand Up @@ -13620,7 +13620,7 @@ W: http://wireless.kernel.org/
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211.git
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
S: Maintained
F: Documentation/rfkill.txt
F: Documentation/driver-api/rfkill.rst
F: Documentation/ABI/stable/sysfs-class-rfkill
F: net/rfkill/
F: include/linux/rfkill.h
Expand Down Expand Up @@ -15343,7 +15343,7 @@ F: drivers/dma-buf/dma-fence*
F: drivers/dma-buf/sw_sync.c
F: include/linux/sync_file.h
F: include/uapi/linux/sync_file.h
F: Documentation/sync_file.txt
F: Documentation/driver-api/sync_file.rst
T: git git://anongit.freedesktop.org/drm/drm-misc

SYNOPSYS ARC ARCHITECTURE
Expand Down Expand Up @@ -16839,7 +16839,7 @@ R: Cornelia Huck <[email protected]>
L: [email protected]
T: git git://github.com/awilliam/linux-vfio.git
S: Maintained
F: Documentation/vfio.txt
F: Documentation/driver-api/vfio.rst
F: drivers/vfio/
F: include/linux/vfio.h
F: include/uapi/linux/vfio.h
Expand All @@ -16848,7 +16848,7 @@ VFIO MEDIATED DEVICE DRIVERS
M: Kirti Wankhede <[email protected]>
L: [email protected]
S: Maintained
F: Documentation/vfio-mediated-device.txt
F: Documentation/driver-api/vfio-mediated-device.rst
F: drivers/vfio/mdev/
F: include/linux/mdev.h
F: samples/vfio-mdev/
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma-buf/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ config SYNC_FILE
associated with a buffer. When a job is submitted to the GPU a fence
is attached to the buffer and is transferred via userspace, using Sync
Files fds, to the DRM driver for example. More details at
Documentation/sync_file.txt.
Documentation/driver-api/sync_file.rst.

config SW_SYNC
bool "Sync File Validation Framework"
Expand Down
2 changes: 1 addition & 1 deletion drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ config GPIO_BT8XX
The card needs to be physically altered for using it as a
GPIO card. For more information on how to build a GPIO card
from a BT8xx TV card, see the documentation file at
Documentation/bt8xxgpio.txt
Documentation/driver-api/bt8xxgpio.rst

If unsure, say N.

Expand Down
2 changes: 1 addition & 1 deletion drivers/gpu/drm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ config DRM_LOAD_EDID_FIRMWARE
monitor are unable to provide appropriate EDID data. Since this
feature is provided as a workaround for broken hardware, the
default case is N. Details and instructions how to build your own
EDID data are given in Documentation/EDID/howto.rst.
EDID data are given in Documentation/driver-api/edid.rst.

config DRM_DP_CEC
bool "Enable DisplayPort CEC-Tunneling-over-AUX HDMI support"
Expand Down
2 changes: 1 addition & 1 deletion drivers/pci/switch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ config PCI_SW_SWITCHTEC
Enables support for the management interface for the MicroSemi
Switchtec series of PCIe switches. Supports userspace access
to submit MRPC commands to the switch via /dev/switchtecX
devices. See <file:Documentation/switchtec.txt> for more
devices. See <file:Documentation/driver-api/switchtec.rst> for more
information.

endmenu
4 changes: 2 additions & 2 deletions drivers/platform/x86/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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/dcdbas.txt> for more details on the driver
See <file:Documentation/driver-api/dcdbas.rst> for more details on the driver
and the Dell systems on which Dell systems management software makes
use of this driver.

Expand Down Expand Up @@ -259,7 +259,7 @@ config DELL_RBU
DELL system. Note you need a Dell OpenManage or Dell Update package (DUP)
supporting application to communicate with the BIOS regarding the new
image for the image update to take effect.
See <file:Documentation/dell_rbu.txt> for more details on the driver.
See <file:Documentation/driver-api/dell_rbu.rst> for more details on the driver.


config FUJITSU_LAPTOP
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/x86/dcdbas.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* and Host Control Actions (power cycle or power off after OS shutdown) on
* Dell systems.
*
* See Documentation/dcdbas.txt for more information.
* See Documentation/driver-api/dcdbas.rst for more information.
*
* Copyright (C) 1995-2006 Dell Inc.
*/
Expand Down
2 changes: 1 addition & 1 deletion drivers/platform/x86/dell_rbu.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* on every time the packet data is written. This driver requires an
* application to break the BIOS image in to fixed sized packet chunks.
*
* See Documentation/dell_rbu.txt for more info.
* See Documentation/driver-api/dell_rbu.rst for more info.
*/
#include <linux/init.h>
#include <linux/module.h>
Expand Down
2 changes: 1 addition & 1 deletion drivers/pnp/isapnp/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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/isapnp.txt>.
Some information is in <file:Documentation/driver-api/isapnp.rst>.

If unsure, say Y.
2 changes: 1 addition & 1 deletion drivers/tty/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ config VT_HW_CONSOLE_BINDING
select the console driver that will serve as the backend for the
virtual terminals.

See <file:Documentation/console/console.rst> for more
See <file:Documentation/driver-api/console.rst> for more
information. For framebuffer console users, please refer to
<file:Documentation/fb/fbcon.rst>.

Expand Down
2 changes: 1 addition & 1 deletion drivers/vfio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ menuconfig VFIO
select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM || ARM64)
help
VFIO provides a framework for secure userspace device drivers.
See Documentation/vfio.txt for more details.
See Documentation/driver-api/vfio.rst for more details.

If you don't know what to do here, say N.

Expand Down
2 changes: 1 addition & 1 deletion drivers/vfio/mdev/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ config VFIO_MDEV
default n
help
Provides a framework to virtualize devices.
See Documentation/vfio-mediated-device.txt for more details.
See Documentation/driver-api/vfio-mediated-device.rst for more details.

If you don't know what do here, say N.

Expand Down
2 changes: 1 addition & 1 deletion drivers/w1/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ config W1_CON
default y
---help---
This allows to communicate with userspace using connector. For more
information see <file:Documentation/connector/connector.rst>.
information see <file:Documentation/driver-api/connector.rst>.
There are three types of messages between w1 core and userspace:
1. Events. They are generated each time new master or slave device found
either due to automatic or requested search.
Expand Down
Loading

0 comments on commit baa293e

Please sign in to comment.