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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 537F4C636D6 for ; Fri, 17 Feb 2023 07:49:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbjBQHtn (ORCPT ); Fri, 17 Feb 2023 02:49:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229507AbjBQHtl (ORCPT ); Fri, 17 Feb 2023 02:49:41 -0500 Received: from muru.com (muru.com [72.249.23.125]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 665D55A3BC; Thu, 16 Feb 2023 23:49:40 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 202B880C1; Fri, 17 Feb 2023 07:49:39 +0000 (UTC) Date: Fri, 17 Feb 2023 09:49:37 +0200 From: Tony Lindgren To: Linus Walleij Cc: Mun Yew Tham , Bartosz Golaszewski , Joel Stanley , Andrew Jeffery , Alban Bedel , Orson Zhai , Baolin Wang , Chunyan Zhang , Jay Fang , Daniel Palmer , Romain Perier , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , William Breathitt Gray , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-omap@vger.kernel.org, Marc Zyngier Subject: Re: [PATCH 15/17] gpio: omap: Convert to immutable irq_chip Message-ID: References: <20230215-immutable-chips-v1-0-51a8f224a5d0@linaro.org> <20230215-immutable-chips-v1-15-51a8f224a5d0@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230215-immutable-chips-v1-15-51a8f224a5d0@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, * Linus Walleij [230216 09:38]: > Convert the driver to immutable irq-chip with a bit of > intuition. > > This driver require some special care: .irq_ack() was copied > from dummy_irq_chip where it was defined as noop. This only > makes sense if using handle_edge_irq() that will unconditionally > call .irq_ack() to avoid a crash, but this driver is not ever > using handle_edge_irq() so just avoid assigning .irq_ack(). > > A separate chip had to be created for the non-wakeup instance. Nice, works for me. BTW, I still see these warnings remaining on boot: gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation. Seems like we might be able to get rid of those too now or are there still some dependencies with /sys/class/gpio for example? Reviewed-by: Tony Lindgren Tested-by: Tony Lindgren