Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4572825rwr; Mon, 8 May 2023 09:28:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5RgGkiOa9eAHfZ3TNQtQq468gWQfO0VlFdeVdUdWduF4rEmjEkz7JpAaWDnHgmCQuB0XoD X-Received: by 2002:a17:90b:33ce:b0:23d:1143:c664 with SMTP id lk14-20020a17090b33ce00b0023d1143c664mr11160125pjb.31.1683563318846; Mon, 08 May 2023 09:28:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683563318; cv=none; d=google.com; s=arc-20160816; b=mtUO8DkFQxThr/7/GnyxiCX1aaVhhL5+k4Naahc4yQ8KfW0kzfHrkXbRY/HCVTiOwx 8bIvXu7jNpyJAfHkWDBNuCxFQDwrlK9PTeaeS2eUMNJC8ZVQQzUYVCUkV49u/NWjU0Qp Wq6CL3IAGlWfaYC0gR1q6OG93GtiOKgqYSNg81idaUoJPDxLaxBEwMPcU+43ObQn+lDg K8qQ7yVjsUrryBEnuFQ5uVkpk4TCTr7v1R/2kASBO9qCdtjQVhC6zi2i55dTHCbRPOLD 45eQX20piM1tpEUmrXjNSpvg2VwnjILBpARhqojaR+ahs4/ex7FTXvID1Wv8bBygzuGS GEbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1kqrfVzwpCvYI/8eaBGpdv0mjLWCFAQdjN6b+WbPsno=; b=rYQELmzWbaSbOFbqaFMrIhOiaC0hXoYaB27zE7xcNaKUF+LfS2Gwhyvw7/si88WIZ5 2kUYEMoRoDfN8IHDxvg13HWEzTzk6jaEMq6N2odr9QPUfvvU3fiRmqN+Wat3D+WpARn3 3qFE52xltld8x/W+ZOVpM9YSN4pdAwhCjC5b1/xqKZZ3Kd4t5rusezTpri6aXT3O5g2J RxFEvGoYYe/2xZTvzN/Wmj45poEf93Ix0Wu63ve8AG9PMX+A4VOof4NbA5NSejwvfNk3 cB9o79BduGPrg9cW+EeOjfMpHIzraqz8g5flLYXxS+LFbyiUoXtGmiwzhFFZvr0m6W2a uTlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="vC/3ScTo"; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j128-20020a636e86000000b0052e764bad3esi4789705pgc.551.2023.05.08.09.28.25; Mon, 08 May 2023 09:28:38 -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=@kernel.org header.s=k20201202 header.b="vC/3ScTo"; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234014AbjEHQUt (ORCPT + 99 others); Mon, 8 May 2023 12:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233725AbjEHQUs (ORCPT ); Mon, 8 May 2023 12:20:48 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51A5E172D; Mon, 8 May 2023 09:20:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CAACC60C5A; Mon, 8 May 2023 16:20:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86282C433EF; Mon, 8 May 2023 16:20:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683562845; bh=hNKbhjXj4sq7siJDAnA0CwKqmHnlz6fdow6mqG667FA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vC/3ScToQKhedFLfxUFSJ3aCnIFQ0ilNTcZmOvWfnMTfly0Y9+O7vzM0QHX8Y06eC c7fRRlONd+f2NO7xa8jTaXN8agDMHkEG8a4KmDON8G0osb5Jw5TwquFB8n360h6lfd BpC7Hi39UPl1zzmAVZ77ZoVtKVB+17cKZLXXIjjkC+zQvGKcv4oOFR1pxeku74nVFS 7XkdKiTUMB59g96XuAhNv9sDvb9ckYlFLNH8M/FOw3VLSMZh8Mm/IVuasrRHULRqS9 /48L1lKQrFX8SbG3gt16Mv5iEMzBQsWJ+3vdWEi3JbSXSSco99OeSo8rpK0PXtNp/P LVmby35lajZAw== Date: Tue, 9 May 2023 00:09:38 +0800 From: Jisheng Zhang To: Guo Ren Cc: Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Palmer Dabbelt , Paul Walmsley , Albert Ou , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH 1/5] irqchip/sifive-plic: Support T-HEAD's C910 PLIC Message-ID: References: <20230507182304.2934-1-jszhang@kernel.org> <20230507182304.2934-2-jszhang@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 On Mon, May 08, 2023 at 02:52:29PM +0800, Guo Ren wrote: > On Mon, May 8, 2023 at 2:34 AM Jisheng Zhang wrote: > > > > The T-HEAD's C910 PLIC still needs the delegation bit settingto allow > > access from S-mode, but it doesn't need the edge quirk. > > > > Signed-off-by: Jisheng Zhang > > --- > > .../bindings/interrupt-controller/sifive,plic-1.0.0.yaml | 4 ++++ > > drivers/irqchip/irq-sifive-plic.c | 1 + > > 2 files changed, 5 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > > index f75736a061af..64b43a3c3748 100644 > > --- a/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > > +++ b/Documentation/devicetree/bindings/interrupt-controller/sifive,plic-1.0.0.yaml > > @@ -62,6 +62,10 @@ properties: > > - starfive,jh7110-plic > > - canaan,k210-plic > > - const: sifive,plic-1.0.0 > > + - items: > > + - enum: > > + - thead,light-plic > > + - const: thead,c910-plic > > - items: > > - enum: > > - allwinner,sun20i-d1-plic > > diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c > > index e1484905b7bd..71afa2a584d9 100644 > > --- a/drivers/irqchip/irq-sifive-plic.c > > +++ b/drivers/irqchip/irq-sifive-plic.c > > @@ -569,6 +569,7 @@ static int __init plic_init(struct device_node *node, > > } > > > > IRQCHIP_DECLARE(sifive_plic, "sifive,plic-1.0.0", plic_init); > > +IRQCHIP_DECLARE(thead_c910_plic, "thead,c910-plic", plic_init); > > IRQCHIP_DECLARE(riscv_plic0, "riscv,plic0", plic_init); /* for legacy systems */ > > > > static int __init plic_edge_init(struct device_node *node, > > -- > > 2.40.0 > > > opensbi needs thead,c900-plic, and we could put multi compatible name > in the dts. So, it's no need here. Thanks, I misunderstood the PLIC edge quirk. This patch isn't needed any more.