Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2678740iog; Mon, 27 Jun 2022 00:03:37 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uANdkU21ZqugOd2PGiY/Lg0SBo4yYmUbXk2a3dzpOuiiiqUXZdDCalbwGNZFI3dGlbtP1v X-Received: by 2002:a17:902:9041:b0:16a:aef:7b84 with SMTP id w1-20020a170902904100b0016a0aef7b84mr13193750plz.124.1656313417304; Mon, 27 Jun 2022 00:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656313417; cv=none; d=google.com; s=arc-20160816; b=vpkR0Xq6yJSLcwe49WS04pKwhDDuYfb3CpESFE3rl0VsFhlR0qNDXVsS77OPwJZkqZ j9vuJjRQMyFR16CLSLm1EhKvH9j5hVW/mweE5ZgXyKQQgdZHDLpKH42Q5Dki82L74MDA Mtx8wpAE0bziOUYxLNpGmbH0Y61wsfiDNpGEdFV3sm3CxPU3AdcV+p4GDDveL+jW5r3o FmjelGD0k8Tn05514vwaWAm5PCqNK4hL8Sh55cS9GI6ULE7g8FWSwILOj1zDqRwmoQz+ 36/jCdciN5Y93WYVSxKHGSW+UAyCuWTG31hBj4wRFbOP8BwyjCEhKdKTUGhEssQFRBZD Fl0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=xVqTSmIZCYDE0z29E8Xcwzac5QqwGLZtdGpULPCXLYM=; b=lsE3QN3Ol3ZI9Ai46XRUHMdyoYf161RjpQnXffzuKoFkS+dW/hkwv+TGJRB4KW+QDh eVQ77OA541XXSHQmQmdZ8+P35p8yvvmq9uk3eU3q5ur49/X+8A1XrDBLPgdgVCUH2/lM cqbwY7xcjaC8/x2ZSPQ64+Xcu8WSElL0f6YneLKYPpIFXN7HY6Ec7ImNJMasNlF0DW+G wGAfWrxosGaVUuiNzVq0xBJMm7Yj+OHouA7zh6zFJdqcYoT4Isl8bNA33nBmD35KhFoQ VxBQHDengSQJ9mQJLlXegT+tiyXHTlwH3kdbw+Iqts96wqg6CtZSW+DaSs6o3OwUtWNT hokw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="BWRvRLt/"; 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 a7-20020a170902b58700b001678ce9091bsi11782481pls.554.2022.06.27.00.03.25; Mon, 27 Jun 2022 00:03:37 -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="BWRvRLt/"; 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 S232474AbiF0Guo (ORCPT + 99 others); Mon, 27 Jun 2022 02:50:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232320AbiF0Gum (ORCPT ); Mon, 27 Jun 2022 02:50:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5021126C0; Sun, 26 Jun 2022 23:50:42 -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 E0FA6612EE; Mon, 27 Jun 2022 06:50:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52984C341CA; Mon, 27 Jun 2022 06:50:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656312641; bh=kD7SZF1jNAVPc0INxaOHFTvsDEVbYxB3CbbfNIpTB1w=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BWRvRLt/oqeA2/Hmle5OVB6hEoiC86UQg676mPsNHKWzzof6dtBDZ0wk6/pFfHycH m41UbhTCR8N8VMDQCRFHrtds/D1a0KtPApRKpJOVB00hfAbuyhYpMmKuCZI8cWi/9p z0jJmIZ6CJF8XhVqSV+rv2kyzQUUh3I7AxBzgMEsSwlT06PdgD/AUtdeAmLu6s6FNE YUUCpO/+M8U3se+4QjdTes5aZSkvcgvdfmTVJuY90L01DeSz6aRQ3TrlDPh64GyO08 DmkUCiSMCkJW0n+5r4gtnltfcVknBOGjheNWw+Dh3gblXROBSf+Gj1VB2ljGbdxgbJ FlFWe8yMTzCoQ== Received: by mail-vs1-f49.google.com with SMTP id k25so8058589vso.6; Sun, 26 Jun 2022 23:50:41 -0700 (PDT) X-Gm-Message-State: AJIora/J0tlk6qkur92YzNAivdPN0n75oOLNhu1X6xF4f85Nvymgm4qm Z31wgGjAafrH68RfY6wBpkH/hOVQ4N+LIpQ+PeI= X-Received: by 2002:a05:6102:366f:b0:356:352f:9de2 with SMTP id bg15-20020a056102366f00b00356352f9de2mr2292856vsb.2.1656312640226; Sun, 26 Jun 2022 23:50:40 -0700 (PDT) MIME-Version: 1.0 References: <20220627051257.38543-1-samuel@sholland.org> <20220627051257.38543-3-samuel@sholland.org> In-Reply-To: <20220627051257.38543-3-samuel@sholland.org> From: Guo Ren Date: Mon, 27 Jun 2022 14:50:29 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v1 2/3] irqchip/sifive-plic: Name the chip more generically To: Samuel Holland Cc: Lad Prabhakar , Prabhakar , Marc Zyngier , Sagar Kadam , Paul Walmsley , Palmer Dabbelt , linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , Thomas Gleixner , Biju Das , Albert Ou , Krzysztof Kozlowski , Rob Herring , devicetree , Linux Kernel Mailing List , linux-riscv Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.5 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 Reviewed-by: Guo Ren On Mon, Jun 27, 2022 at 1:13 PM Samuel Holland wrote: > > The interface for SiFive's PLIC was adopted and clarified by RISC-V as > the standard PLIC interface. Now that several PLIC implementations by > different vendors share this same interface, it is somewhat misleading > to report "SiFive PLIC" to userspace, when no SiFive hardware may be > present. This is especially the case when some implementations are > subtly incompatible with the binding and behavior of the SiFive PLIC, > yet are similar enough to share a driver. > > Signed-off-by: Samuel Holland > --- > > drivers/irqchip/irq-sifive-plic.c | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) > > diff --git a/drivers/irqchip/irq-sifive-plic.c b/drivers/irqchip/irq-sifive-plic.c > index bb87e4c3b88e..90515865af08 100644 > --- a/drivers/irqchip/irq-sifive-plic.c > +++ b/drivers/irqchip/irq-sifive-plic.c > @@ -28,6 +28,11 @@ > * The largest number supported by devices marked as 'sifive,plic-1.0.0', is > * 1024, of which device 0 is defined as non-existent by the RISC-V Privileged > * Spec. > + * > + * The PLIC behavior and memory map is futher formalized as an official RISC-V > + * specification: > + * > + * https://github.com/riscv/riscv-plic-spec/blob/master/riscv-plic.adoc > */ > > #define MAX_DEVICES 1024 > @@ -177,12 +182,12 @@ static void plic_irq_eoi(struct irq_data *d) > } > > static struct irq_chip plic_chip = { > - .name = "SiFive PLIC", > - .irq_mask = plic_irq_mask, > - .irq_unmask = plic_irq_unmask, > - .irq_eoi = plic_irq_eoi, > + .name = "PLIC", > + .irq_mask = plic_irq_mask, > + .irq_unmask = plic_irq_unmask, > + .irq_eoi = plic_irq_eoi, > #ifdef CONFIG_SMP > - .irq_set_affinity = plic_set_affinity, > + .irq_set_affinity = plic_set_affinity, > #endif > }; > > -- > 2.35.1 > -- Best Regards Guo Ren ML: https://lore.kernel.org/linux-csky/