Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3441249imw; Thu, 7 Jul 2022 01:39:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sifzf0uRH9bgw5y/VzeAoWR1FQE7PzYfjW8Odu1/C9EMNni+cd+HPbQy8BYwbSzbCoInvn X-Received: by 2002:a05:6402:43cd:b0:435:d76d:f9a7 with SMTP id p13-20020a05640243cd00b00435d76df9a7mr59645806edc.119.1657183142900; Thu, 07 Jul 2022 01:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657183142; cv=none; d=google.com; s=arc-20160816; b=VPA8gHErMZWxY1PhLF822wU6NmTcd3938BVJCDQNbt6+OndR/yHiDC2Gp3eh8EJS8y aJ7E6aqsZmR3HnRSDBq40dB3IIpAKg7hFalHqatl/q3AVISI6xFheUrweNI8OS+HIr5T SpW9/ZulDPfXjfOH2eM4qYdE/NTvZSCelJIyWf8wBCrsh4uPuuYFF0k3XN0xKsGIN0kP NG9wSD7j8/u3W2aYl2IbwhtXiVeFzyi0VRaFWOGdeftmktg6aUmYWvWSg/S836jkZDCk KmOn0XSjDDId+d+fq9dnJjC6lUS4QUJHYR0uAh0mN7T36zlpRQSVDwoKiIgt/v+btk47 7b5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=DD+NDpqm5I36QU55M3gfvR6ksTUNVcDNJp9Awm7EMaY=; b=sPZRUXMXnHXcCVn3mx5fhHxs7qBtqWyUyXXDuy3QLXMOvVaSyB/jX/NNn5xrVbs3rP bnGdeFj5FHpATxPjwZ7kuIWoACZLIln45u0osAf8wHZgNZE+FVvUL/jPviCrF2MaRWkh eE/PxK2dB/BJN9RWETZQXO7fXNXhOHNkjbDxxrmPKiKgZbEqv6axpHcfX1Q27fyNz1KU vjPnSnQD9SbGZp42I3fWiZ1URP6I0qyAK/9oy+K2ditgRmcLMxMqRqVW2fT/A1haxxqv 0FdXZRbd62/AW/YB0wYC7cSV3w/Q9jiyu+yQUH7ixuGTXyCmYpfIN8QjMsxHTXRgiLtl eiow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=D2SfCCrM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020a056402521500b004358cdfe7e1si22274695edd.131.2022.07.07.01.38.37; Thu, 07 Jul 2022 01:39:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=D2SfCCrM; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235444AbiGGISm (ORCPT + 99 others); Thu, 7 Jul 2022 04:18:42 -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: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 irqchip: Commit-ID: 95001b756467ecc9f5973eb5e74e97699d9bbdf1 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/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); - return -ENOSYS; + /* no error on missing optional irq_chip::irq_request_resources */ + return 0; } EXPORT_SYMBOL_GPL(irq_chip_request_resources_parent);