From nobody Mon Jun 29 22:18:51 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 4219FC4332F for ; Wed, 2 Feb 2022 10:53:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232574AbiBBKxR (ORCPT ); Wed, 2 Feb 2022 05:53:17 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:46036 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbiBBKxN (ORCPT ); Wed, 2 Feb 2022 05:53:13 -0500 Date: Wed, 02 Feb 2022 10:53:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1643799192; 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=JltA6AnJ+s3tMFBXvcHISP0tXOyve+uqNVjA76OKQlg=; b=jZnxoIwTkE2CeJrIQcx/Ya9ZjgV0aUxl3uWwFa21W1gv4Z5IfBJoxQvRZAAW2HXqpUw8TC v3wKwx0TefyAVmV38BaiWxjAWK1VK4TKKP7sDyx/ZeLl8Z+MPc1jTAzuYZIWf3EUJHuciG jZQkOLW9W5JsvzrkQot0n2WzmfDy6DWk2aRx7ODqDyS1e9m/CKSnWJYqPvqIhL1dAuG59w qXCVAlpaHUEfVJobwzPuX6SJXiyonJ/zXB8skX1vy03Zk/hVX99a8UxYbijFXQQzN+wwUZ oqckMF+zhsw8MsMnbrqmTGgkkqCdbjctF8u44OhmsIeZtIJtd624PfX8g109Fw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1643799192; 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=JltA6AnJ+s3tMFBXvcHISP0tXOyve+uqNVjA76OKQlg=; b=TJJtkDi5qtjzQXRtKrj8+FVEKuX/C+b07QkYhF3+4Ldg+0cxDASuZ8easULi441QJ/lEa7 PkP0SoIKqcJmLTBw== From: "irqchip-bot for Guo Ren" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-fixes] irqchip/sifive-plic: Add missing thead,c900-plic match string Cc: Guo Ren , Anup Patel , Marc Zyngier , Palmer Dabbelt , Samuel Holland , Thomas Gleixner In-Reply-To: <20220130135634.1213301-3-guoren@kernel.org> References: <20220130135634.1213301-3-guoren@kernel.org> MIME-Version: 1.0 Message-ID: <164379919119.16921.10020352967794973731.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-fixes branch of i= rqchip: Commit-ID: 1d4df649cbb4b26d19bea38ecff4b65b10a1bbca Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-plat= forms/1d4df649cbb4b26d19bea38ecff4b65b10a1bbca Author: Guo Ren AuthorDate: Sun, 30 Jan 2022 21:56:34 +08:00 Committer: Marc Zyngier CommitterDate: Wed, 02 Feb 2022 10:49:29=20 irqchip/sifive-plic: Add missing thead,c900-plic match string The thead,c900-plic has been used in opensbi to distinguish PLIC [1]. Although PLICs have the same behaviors in Linux, they are different hardware with some custom initializing in firmware(opensbi). Qute opensbi patch commit-msg by Samuel: The T-HEAD PLIC implementation requires setting a delegation bit to allow access from S-mode. Now that the T-HEAD PLIC has its own compatible string, set this bit automatically from the PLIC driver, instead of reaching into the PLIC's MMIO space from another driver. [1]: https://github.com/riscv-software-src/opensbi/commit/78c2b19218bd62653= b9fb31623a42ced45f38ea6 Signed-off-by: Guo Ren Cc: Anup Patel Cc: Marc Zyngier Cc: Palmer Dabbelt Cc: Samuel Holland Cc: Thomas Gleixner Tested-by: Samuel Holland Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220130135634.1213301-3-guoren@kernel.org --- drivers/irqchip/irq-sifive-plic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive= -plic.c index 259065d..09cc982 100644 --- a/drivers/irqchip/irq-sifive-plic.c +++ b/drivers/irqchip/irq-sifive-plic.c @@ -398,3 +398,4 @@ out_free_priv: =20 IRQCHIP_DECLARE(sifive_plic, "sifive,plic-1.0.0", plic_init); IRQCHIP_DECLARE(riscv_plic0, "riscv,plic0", plic_init); /* for legacy syst= ems */ +IRQCHIP_DECLARE(thead_c900_plic, "thead,c900-plic", plic_init); /* for fir= mware driver */