From nobody Sun Apr 19 02:15:20 2026 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 C622BC43334 for ; Thu, 7 Jul 2022 08:18:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235392AbiGGISo (ORCPT ); Thu, 7 Jul 2022 04:18:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235545AbiGGIRq (ORCPT ); Thu, 7 Jul 2022 04:17:46 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57988564CA for ; Thu, 7 Jul 2022 01:16:04 -0700 (PDT) Date: Thu, 07 Jul 2022 08:15:55 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1657181756; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DD+NDpqm5I36QU55M3gfvR6ksTUNVcDNJp9Awm7EMaY=; b=D2SfCCrMGUV310c6hy5yZr61+cEWLhR24lIQJeXJQ1cJWk+kA1O9guw7iSJjfpzWQcl7H/ KJXh61L0q1lVfY2w8URxlf/x666JQvAZZnfBImN67z7GVDA3D7e8k/a00NwKxwAoNmyRwu ZFtDSQtj3w7z1YVN7EgokWnwAmbGwdZXUl7fDZa2AqJ9RGN44a8Qdq/dcdsWyiCKgSDiqO 7307bb4oonY7i/yvxOqc4eTZqWLPo5SdritlFi02WPN2x2X/q+rII6aHuds5cx17x6zaI4 xiCP3C+du2yCu+bBLzc9aVO5+ZxBQo7HoAzGWNWu6dDEMUKltKVHpllJ1R7sQQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1657181756; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DD+NDpqm5I36QU55M3gfvR6ksTUNVcDNJp9Awm7EMaY=; b=w66UehvxuH3OkeyEeDlLtMyWUlyDhqve3D4Om2GS23PBS1loQVdn+2GOFBRJbk2bUmggA2 ufwNXrGcXJRfGuCA== From: "irqchip-bot for Antonio Borneo" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] genirq: Don't return error on missing optional irq_request_resources() Cc: Antonio Borneo , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20220512160544.13561-1-antonio.borneo@foss.st.com> References: <20220512160544.13561-1-antonio.borneo@foss.st.com> MIME-Version: 1.0 Message-ID: <165718175501.15455.15982341933411923765.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of ir= qchip: Commit-ID: 95001b756467ecc9f5973eb5e74e97699d9bbdf1 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-plat= forms/95001b756467ecc9f5973eb5e74e97699d9bbdf1 Author: Antonio Borneo AuthorDate: Thu, 12 May 2022 18:05:44 +02:00 Committer: Marc Zyngier CommitterDate: Thu, 07 Jul 2022 09:04:13 +01:00 genirq: Don't return error on missing optional irq_request_resources() Function irq_chip::irq_request_resources() is reported as optional in the declaration of struct irq_chip. If the parent irq_chip does not implement it, we should ignore it and return. Don't return error if the functions is missing. Signed-off-by: Antonio Borneo Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220512160544.13561-1-antonio.borneo@foss.= st.com --- kernel/irq/chip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 886789d..c190405 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c @@ -1516,7 +1516,8 @@ int irq_chip_request_resources_parent(struct irq_data= *data) if (data->chip->irq_request_resources) return data->chip->irq_request_resources(data); =20 - return -ENOSYS; + /* no error on missing optional irq_chip::irq_request_resources */ + return 0; } EXPORT_SYMBOL_GPL(irq_chip_request_resources_parent);