Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4486123imw; Tue, 19 Jul 2022 07:30:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t7e7o9n+WOvvG7srd6+WyleFb6tpUmtXYjGfVBAjux38GjIQEmUj6yJVS6h8cwoRj3LUP1 X-Received: by 2002:a05:6214:f05:b0:473:7874:5e7a with SMTP id gw5-20020a0562140f0500b0047378745e7amr25295113qvb.19.1658241041738; Tue, 19 Jul 2022 07:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658241041; cv=none; d=google.com; s=arc-20160816; b=UScM6fxYpK4WMlu+CSFRjLlrHzSM9gMznJ87s2BvHzLxFvQyNKl3qF1NZYaOEN3Ba8 KIyzgBlrwPJCOvkXrP1xb14qu8kY+dWamJn718/HIlltNtPiz6qQnJooL0PtnRp3kpOP rey+R4mYJrzlv1LeEDXYzXMGEgvAkV3Gp/GkA5m25aMwL7fbcjeDNw+l933y2q9p6Pyt Anq9ACtB8Veejv/kozKg8lge7iS+/itXaLVtEqO34ZciNet5f9xERCUjnur27eTevEaG 6ckaBT1f/9C/7qvFpiV+nzuieRR9ll/ARAv42JMsIVLYCE+4L8Jt5CUQt1UfHVlTl6+R 14Jw== 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=XCsyc41ZvNp9njn6uqBiyVKAtQUMD4aN+KF64YaG1r0=; b=es/pQdseN9YmdKd6YSEfKw/Giol4Cw0vol0okUTiZ46SnkLjHtJxs64ycG3sCQeiZ0 8nvlUDGnCj0FQFpP2d38SlEV38jQSdVLiOnmZev2sB7YwWCimzc4y8tfzwL6r/2eZW5K ACeAnswBUVSbnSD8XdbjSnRPiitloErN5Mhl8KGPKOJcwHKroFxpsEUtRmXtWD6+0FTP EYl0TEMMDTN6A8QPHruoTzRyxT9al+CXt6yNtnYM6dLU9QcU3zHM6e2Tdpk9cDVWNvs4 CcK5F0qQ9WwMCSYG2cl30Lyxq+cZW9VuFmRtIXMyngHuA6EPMi3tPwwXi3yJZDB0ObwI Ep+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=YPdHyUmK; dkim=neutral (no key) header.i=@linutronix.de header.b=kwqm4ry+; 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 125-20020a370c83000000b006b5de4cfd6fsi931155qkm.167.2022.07.19.07.30.25; Tue, 19 Jul 2022 07:30:41 -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=YPdHyUmK; dkim=neutral (no key) header.i=@linutronix.de header.b=kwqm4ry+; 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 S238077AbiGSOTp (ORCPT + 99 others); Tue, 19 Jul 2022 10:19:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234994AbiGSOS7 (ORCPT ); Tue, 19 Jul 2022 10:18:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ADA37F52E for ; Tue, 19 Jul 2022 06:55:51 -0700 (PDT) Date: Tue, 19 Jul 2022 13:55:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1658238949; 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=XCsyc41ZvNp9njn6uqBiyVKAtQUMD4aN+KF64YaG1r0=; b=YPdHyUmK5vyVXAw657qq8kazjqN4Yy5XiVlPrYAikcV6WP09ViYoQ0MlYTg6tk9uBMif5P sNcX9ZPul80F6/3T7fU5vqmU4TiS4gCSHAANKD+/AiQWgUr37w+1ht0/k9miwu6N9r374l 0MPVLAnkh8c6Co6FGW5BTp3DdBYGO4/R6JBd2SpdaRlLMLUn1hFUjEBnLPeRF+xMZiymQk i5mCYYQjkvQBX2jEUUesk8lQuoKfDbuF0N5oASFfjJOlyAgB4mywXEhFw5DlnqNwQ0NF2X uWTxRpa9ICN9mXrMeZHAokExg+8ZA2Y3k927qJYgx88q6Y3qyYgFn2ggasY6XA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1658238949; 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=XCsyc41ZvNp9njn6uqBiyVKAtQUMD4aN+KF64YaG1r0=; b=kwqm4ry+CPtz1gxepLFpMbANO/aPy0k/J42CnfLn1bLhhv4R1forz7H0VzqaVgxioR6wWr 0KI+48rU++5k0tCQ== From: "irqchip-bot for Xu Qiang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] irqdomain: Report irq number for NOMAP domains Cc: Xu Qiang , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20220719063641.56541-2-xuqiang36@huawei.com> References: <20220719063641.56541-2-xuqiang36@huawei.com> MIME-Version: 1.0 Message-ID: <165823894877.15455.10845543417521952692.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 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 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 irqc= hip: Commit-ID: 6f194c99f466147148cc08452718b46664112548 Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platfo= rms/6f194c99f466147148cc08452718b46664112548 Author: Xu Qiang AuthorDate: Tue, 19 Jul 2022 06:36:40=20 Committer: Marc Zyngier CommitterDate: Tue, 19 Jul 2022 14:51:13 +01:00 irqdomain: Report irq number for NOMAP domains When using a NOMAP domain, __irq_resolve_mapping() doesn't store the Linux IRQ number at the address optionally provided by the caller. While this isn't a huge deal (the returned value is guaranteed to the hwirq that was passed as a parameter), let's honour the letter of the API by writing the expected value. Fixes: d22558dd0a6c (=E2=80=9Cirqdomain: Introduce irq_resolve_mapping()=E2= =80=9D) Signed-off-by: Xu Qiang [maz: commit message] Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220719063641.56541-2-xuqiang36@huawei.com --- kernel/irq/irqdomain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/irq/irqdomain.c b/kernel/irq/irqdomain.c index d5ce965..481abb8 100644 --- a/kernel/irq/irqdomain.c +++ b/kernel/irq/irqdomain.c @@ -910,6 +910,8 @@ struct irq_desc *__irq_resolve_mapping(struct irq_domain = *domain, data =3D irq_domain_get_irq_data(domain, hwirq); if (data && data->hwirq =3D=3D hwirq) desc =3D irq_data_to_desc(data); + if (irq && desc) + *irq =3D hwirq; } =20 return desc;