diff mbox series

[RFCv2,4/4] gpio/driver.rst: drop gpiochip_(un)lock_as_irq section

Message ID 20180827130620.96232-5-hverkuil@xs4all.nl
State New
Headers show
Series gpiolib: chain irq callbacks | expand

Commit Message

Hans Verkuil Aug. 27, 2018, 1:06 p.m. UTC
From: Hans Verkuil <hans.verkuil@cisco.com>

These functions no longer need to be called by drivers, so
just drop this section from the documentation.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
---
 Documentation/driver-api/gpio/driver.rst | 19 -------------------
 1 file changed, 19 deletions(-)

Comments

Linus Walleij Aug. 29, 2018, 7:31 a.m. UTC | #1
On Mon, Aug 27, 2018 at 3:06 PM Hans Verkuil <hverkuil@xs4all.nl> wrote:

> From: Hans Verkuil <hans.verkuil@cisco.com>
>
> These functions no longer need to be called by drivers, so
> just drop this section from the documentation.
>
> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>

So unfortunately I think you need to keep some kind of API for
this for all drivers that do not use GPIOLIB_IRQCHIP.

Yours,
Linus Walleij
diff mbox series

Patch

diff --git a/Documentation/driver-api/gpio/driver.rst b/Documentation/driver-api/gpio/driver.rst
index cbe0242842d1..15e22df72076 100644
--- a/Documentation/driver-api/gpio/driver.rst
+++ b/Documentation/driver-api/gpio/driver.rst
@@ -358,25 +358,6 @@  keep track of usage inside of the gpiolib subsystem. This is why the API
 below exists.
 
 
-Locking IRQ usage
------------------
-Input GPIOs can be used as IRQ signals. When this happens, a driver is requested
-to mark the GPIO as being used as an IRQ::
-
-	int gpiochip_lock_as_irq(struct gpio_chip *chip, unsigned int offset)
-
-This will prevent the use of non-irq related GPIO APIs until the GPIO IRQ lock
-is released::
-
-	void gpiochip_unlock_as_irq(struct gpio_chip *chip, unsigned int offset)
-
-When implementing an irqchip inside a GPIO driver, these two functions should
-typically be called in the .startup() and .shutdown() callbacks from the
-irqchip.
-
-When using the gpiolib irqchip helpers, these callback are automatically
-assigned.
-
 Real-Time compliance for GPIO IRQ chips
 ---------------------------------------