From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9340F606A322 for ; Thu, 3 Dec 2026 11:22:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=iiQWlZad; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=mfjOMEU+ DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=WZqvaoQ8RmgTGDGMN53OxKBt8GJZhs0bRpoBH8YXaJA=; b=iiQWlZadzBad6AqTtP8qo5o1q9 7kZdLot5qFFwGrBVOyxV0WBf0H03+M0jWC8pnxvAaoFsVVEhQtBDNwVwWKY1LeA3JSTx23sC9zmvy ckpuyXXUWs8oA9Tc7ykXdZHi4z9w2edCEegZIUbGeK+j1+cXJpiZRviY+WFriaKD3YYUnKfMDrG/c no/rVlCa9a4Rp491zj6heAkuLqugIbIB0ZA9HLi9cJy7rgvjiGyuQzGqT9rRVWtUeRBC2alHaVFkJ RS5dJwqbHR0Nvw0JLwFe5QUyTRSzitvYEDACqD/rwHD/xXSnKCs6hMLp64h/kgCAO8ab5NuIWqv+k zm3tDmDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ4tY-0000000ENJk-0drg; Thu, 03 Dec 2026 11:22:36 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ4tS-0000000ENJ5-0ogi for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 11:22:34 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 9F74760E0A; Thu, 3 Dec 2026 11:22:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8ABE21F000C1; Thu, 3 Dec 2026 11:22:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796296949; bh=WZqvaoQ8RmgTGDGMN53OxKBt8GJZhs0bRpoBH8YXaJA=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=mfjOMEU+NwlG9jVajHRfCf6Xf2PxpQcDsFAYlPWyxEB0bWgzkGYAh5uNBtEtPgagd +bGsTOq/lj5+aJSsl/CYh01lBDXp92AS6yiJQQnQroQAAMmJ1Z4OlZ8077ceIG9SLI 03p/S6P91tZYIqaPvoUMbJP/V8DiZ3uSw2MaEU/WrhuN9NhWiafb1CMhPGeGKMZuYQ 2ZDufpEeu40njykyUZSDA750JBxbK4ldLGcYURgKqtE3hG+eOK0tkVG4O7lCXwBzgq X14Mlgy3OHUboSWLqz3iLhNphYAap9T88FAL6J6HQatXH5ajtWKFocxMSYS6kCJ9IX yZOUO1sNDbXdw== From: Thomas Gleixner To: Jelly Jia Cc: vkoul@kernel.org, Frank.Li@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, robin.murphy@arm.com, sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, devicetree@vger.kernel.org, cix-kernel-upstream@cixtech.com, dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, joakim.zhang@cixtech.com, radu@rendec.net Subject: Re: [PATCH v5 2/6] irqchip: Add the Sky1 AUDSS auxiliary interrupt controller In-Reply-To: <87h5guoey9.ffs@fw13> References: <20261120053529.371923-1-Jelly.Jia@cixtech.com> <20261120053529.371923-3-Jelly.Jia@cixtech.com> <87ecc0q2im.ffs@fw13> <87h5guoey9.ffs@fw13> Date: Thu, 03 Dec 2026 12:22:25 +0100 Message-ID: <87bj72obgu.ffs@fw13> X-Archived-By: MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-5.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Thu, Dec 03 2026 at 11:07, Thomas Gleixner wrote: > On Wed, Dec 02 2026 at 20:37, Jelly Jia wrote: >>>> +static int sky1_audss_irq_request_resources(struct irq_data *d) >>>> +{ >>>> + return try_module_get(THIS_MODULE) ? 0 : -ENODEV; >>>> +} >>>> + >>>> +static void sky1_audss_irq_release_resources(struct irq_data *d) >>>> +{ >>>> + module_put(THIS_MODULE); >>>> +} >>> >>> What's the point of this exercise? >> >> These callbacks pin the IRQ driver module while a child IRQ is >> requested, preventing the provider from being unloaded while a DMA >> consumer still owns an IRQ. Runtime PM references do not pin the module. >> This follows the same pattern as irq-pruss-intc.c. > > Ok. I wonder if this should be made generic as that's a general life > time problem for all modular interrupt chip drivers. Let me think about > it. It's worse. module_get() on interrupt request is not sufficient because there still might be an interrupt mapped, even if not requested. But that's not a driver level problem. This needs to be addressed in the generic infrastructure. Thanks, tglx