From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2437C433F5 for ; Fri, 8 Apr 2022 13:00:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: Content-Transfer-Encoding:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-ID:References:In-Reply-To:Subject:Cc:To:From :Date:MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=C0E/BMq+55RWeS6MnyEuOzfu+5uA8j1i3A3f/Vw0YSk=; b=JeF0XbOPYjPZbyA0eS3gxyBR/7 n8M5mKCyhTEZmzo1I+ISy/HWHtd4hcdygrxmSVISJaa5Y748/FSsVNEJxKzgB02Sn8NWGRTjzPVz/ qHymyg+wMj4iMPpCOaPR3alvbBTfRpXWPanNMBs1yRFd+vu3hQXZiVpO6Pq/OwBKY2abzNUYgAqfX KrTBVVg0uR/Gbnu9x7Erqm8jVXQfCY3HHLeoI/hCVcY7KZMtfezJJamjIl757evcIiOW6Tb4SB+7X MjYTTKeqk1Ymse3wXnu64n79TJZCP7SwiBy5GnlBN/aWQU9aiyTk4KWvcvP4Rz7sxnWN/W9YFstAb WPqvoKnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncoCW-00HD5R-47; Fri, 08 Apr 2022 12:58:56 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ncnhU-00GzMn-4x for linux-arm-kernel@lists.infradead.org; Fri, 08 Apr 2022 12:26:54 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 72927CE2AE6; Fri, 8 Apr 2022 12:26:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D980DC385A1; Fri, 8 Apr 2022 12:26:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649420802; bh=S3ySNvfP+7/EjC7ydSU5pgHi80ITmCMi6D5xYdpcZfQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pf/0VyasQmdk2dqcdDNTe6uD8ftrzrsCh9VZZ27cOntYN0Q9oSzNI+YcPrybBbcnv TQes4oCXUSO7OQqbrWM2RERmLKTV531tUey0rnkiL7POktivIVi4rCjIR0RwqIK2Z8 pRk7HKhWYdMMTGCAxLHik6UQ2Ib9Q3jsNwRBsE9TxkJHR2QL0usfROCkzNS2r2RZGw 6rXis+KDt40iE+Bg1xL2irIs4nKCYwQbDTrzP02+IE/BTdrNt2/BPp6y7xQXjynniK 7+v2+HLGjeyHcH/lgSqu82WWznfZzJOrd98bLngMah+77+7PIIpEF8Eswi/R6nMH58 ZuyINO7fu77kw== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ncnhI-002lRF-Hu; Fri, 08 Apr 2022 13:26:40 +0100 MIME-Version: 1.0 Date: Fri, 08 Apr 2022 13:26:40 +0100 From: Marc Zyngier To: Andy Shevchenko Cc: Linux Kernel Mailing List , Linus Walleij , Bartosz Golaszewski , Thierry Reding , Joey Gouly , Jonathan Hunter , Hector Martin , Sven Peter , Alyssa Rosenzweig , Bjorn Andersson , Andy Gross , Jeffrey Hugo , Thomas Gleixner , Basavaraj Natikar , Shyam Sundar S K , "open list:GPIO SUBSYSTEM" , linux-tegra , linux-arm Mailing List , linux-arm-msm@vger.kernel.org, Android Kernel Team Subject: Re: [PATCH v2 10/10] Documentation: Update the recommended pattern for GPIO irqchips In-Reply-To: References: <20220405135444.199295-1-maz@kernel.org> <20220405135444.199295-11-maz@kernel.org> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <84a1ed7e4442e04e16730ae112a43aea@kernel.org> X-Sender: maz@kernel.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: andy.shevchenko@gmail.com, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, brgl@bgdev.pl, thierry.reding@gmail.com, joey.gouly@arm.com, jonathanh@nvidia.com, marcan@marcan.st, sven@svenpeter.dev, alyssa@rosenzweig.io, bjorn.andersson@linaro.org, agross@kernel.org, jeffrey.l.hugo@gmail.com, tglx@linutronix.de, Basavaraj.Natikar@amd.com, Shyam-sundar.S-k@amd.com, linux-gpio@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, kernel-team@android.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220408_052652_608100_825B8B97 X-CRM114-Status: GOOD ( 18.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 2022-04-08 12:33, Andy Shevchenko wrote: > On Wed, Apr 6, 2022 at 1:57 PM Marc Zyngier wrote: >> >> Update the documentation to get rid of the per-gpio_irq_chip >> irq_chip structure, and give examples of the new pattern. > > ... > >> + static void my_gpio_mask_irq(struct irq_data *d) >> + { >> + struct gpio_chip *gc = irq_desc_get_handler_data(d); >> + >> + /* >> + * Perform any necessary action to mask the interrupt, >> + * and then call into the core code to synchronise the >> + * state. >> + */ >> + >> + gpiochip_disable_irq(gc, d->hwirq); > > (1) > >> + } >> + >> + static void my_gpio_unmask_irq(struct irq_data *d) >> + { >> + struct gpio_chip *gc = irq_desc_get_handler_data(d); > >> + gpiochip_disable_irq(gc, d->hwirq); > > (2) > >> + /* >> + * Perform any necessary action to unmask the interrupt, >> + * after having called into the core code to synchronise >> + * the state. >> + */ >> + } > > If (1) and (2) being the same is not a mistake (typo) it probably > needs additional explanation. Well spotted, this is definitely a copy-paste issue. I'll fix this locally. Thanks, M. -- Jazz is not dead. It just smells funny... _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel