From patchwork Mon Aug 27 13:06:20 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 962506 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=xs4all.nl Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41zXFv295Pz9s47 for ; Mon, 27 Aug 2018 23:06:27 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726911AbeH0Qw6 (ORCPT ); Mon, 27 Aug 2018 12:52:58 -0400 Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:52408 "EHLO lb3-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbeH0Qw6 (ORCPT ); Mon, 27 Aug 2018 12:52:58 -0400 Received: from marune.fritz.box ([IPv6:2001:983:e9a7:1:8960:b49d:3b62:6d25]) by smtp-cloud9.xs4all.net with ESMTPA id uHDofV4VjEJtcuHDqfnRjG; Mon, 27 Aug 2018 15:06:22 +0200 From: Hans Verkuil To: linux-gpio@vger.kernel.org Cc: ilina@codeaurora.org, Linus Walleij , Marc Zyngier , Thomas Gleixner , Hans Verkuil Subject: [RFCv2 PATCH 4/4] gpio/driver.rst: drop gpiochip_(un)lock_as_irq section Date: Mon, 27 Aug 2018 15:06:20 +0200 Message-Id: <20180827130620.96232-5-hverkuil@xs4all.nl> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180827130620.96232-1-hverkuil@xs4all.nl> References: <20180827130620.96232-1-hverkuil@xs4all.nl> X-CMAE-Envelope: MS4wfO0raWBMx02USSDv/JqPqS7bcm3Rr6OCpQnW8nW8piE15X1Gh0u7ABltXer0mfiGN+DguwlxufnCq0bWeqVASJPlk9RKOOiI4CJJ9wnxH/9AzM5+yjjr oc1py9rg9XZfHyUI9n0V9uG9cBPK52Zjq8T7UkZPqGw1cjFwas1wff9kwF7rmUl1I0rxZ4VQ1Jhnxilqh6PLWNEawbtKHpfQ2kEuszJpV8Zpyp9zVYWUeRnf WsIk7mzwS6jXSTBT5h76umfe6Je6F6Pa88Y7/NlFW0CuoaoyfFQuVd87FaehxNjq8neyhcIaUNXRrw1WuBOPsSibsw1yEMaLkPh1bMEfi01yg8h5V7rEM9EJ BFpODkgEPTVd/DpKMHUaO6nAnr2gB0loHdyvRvnRKJ1CMQCtt+lW6EPiUvDJQIfPsWwT+ixP Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Hans Verkuil These functions no longer need to be called by drivers, so just drop this section from the documentation. Signed-off-by: Hans Verkuil --- Documentation/driver-api/gpio/driver.rst | 19 ------------------- 1 file changed, 19 deletions(-) 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 ---------------------------------------