Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp5246718rwb; Wed, 9 Aug 2023 00:34:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGAeEV4Jm99ilVHcuEN646n/B90tbtIT9s4GyvFfnqQpaucIu0tgtEjlXDITe+01jnog+7q X-Received: by 2002:a17:90b:3654:b0:262:fa59:2908 with SMTP id nh20-20020a17090b365400b00262fa592908mr15185517pjb.1.1691566455547; Wed, 09 Aug 2023 00:34:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691566455; cv=none; d=google.com; s=arc-20160816; b=SE+q8aFKtN4y5Y9QvDnjpTS3vTT9qR6faS3OQvZliXwiuDyww+pKvu97fYFD40N0BW SqWN0gw+lAuLafwbVSf0dO12SyMptI9JN1Z2sjmZNo2smlCcSV5+5Jg0T6QI3IfsukKK XPHZIFeUdSs92BtIR7U242lT8NkwrxQHFn97Rg5WFl00X8fMxVyEQnhREwqwgqZF9VpC Wzl2TWWRYlKVUiIqvm/8S6dRtltc3WkZJ9vYFlkhyflPfy+UQMS9w26XcQ21BZDBcSXa WFSiEs/WyPAzr9hoDZiuUIEjEmHGjshiAHvLVYpNs9XoBy3AxtxbpowyOf3jaiiQ9zHM kIBQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=LVTaAMwRyC5EbNmGnKMt5GVO62sfdhMkzEYvy7bRsXA=; fh=GA3SEjR1uzaQgUVVV9ja5Va5f51+G8u163QbMpuif6Q=; b=OUTXlXNQwTP8TYKybepBUrRnDtxafuJEV/CBphKjofp25wr4IN0n840ZcZ9+E2kIcs qpxeyn9RdVHM5p0NnxHWXhdcwkDO+SHUpOoAi+OYaW1YpsgECt6vjpN6MnYfxyZ+pu82 Gx33VaTgEtbLM71oZ+Xy13R+2gRIcHIO6tsuEVrnoZIxfcvAWDMCd0pp5K31uZf08WkY 9N/lVwomlUIiSCfDDfpCW6wo9WxnSXr7JgVICxcwWxr3fcFoWE4TdCuGyJhLhwv10xRj +dnOzSQwOVduWYELTTSqLYgiVVqIrzycdJaFC64lFmcvJeDZB3wZO2rivcHA/su0uiZb Hvgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=pMiFqkbn; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y17-20020a63fa11000000b0055c66f42eeasi8591756pgh.392.2023.08.09.00.34.03; Wed, 09 Aug 2023 00:34:15 -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=@ventanamicro.com header.s=google header.b=pMiFqkbn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230146AbjHIFtM (ORCPT + 99 others); Wed, 9 Aug 2023 01:49:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbjHIFtL (ORCPT ); Wed, 9 Aug 2023 01:49:11 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 864E91BE5 for ; Tue, 8 Aug 2023 22:49:10 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id d2e1a72fcca58-68730bafa6bso389517b3a.1 for ; Tue, 08 Aug 2023 22:49:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691560150; x=1692164950; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LVTaAMwRyC5EbNmGnKMt5GVO62sfdhMkzEYvy7bRsXA=; b=pMiFqkbnzjp3jnyPBYTlRVYHWKdOC3du5VSbz4kIkpsKYuFw9hdbPRFTVwZMALrr6e SZQa4f+4WZaBbUbb6WuQfpPki/JvBjPp3gjUfPEIXaiLa05X12JMBBOfzjSrRxroNd8E U8Edn8SEcynqoXeuGV5OH3SalOEtqtT5FxFqX3SU35gIbEJIMsWiFKFV8NvAmigpo6ZX 1VFuoHP8/06kb6ySqnq3J06knDAvIozFyfM6zzK+UBFfagPTFrZhAS/6e+TQ40mMrgEV TIYNk8nuqoeDiKI9nMVSb8/4cZxnMmXu4gGya+KvDa2cNxeo6xZuYxs2vwpsCYCPIRLF DSDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691560150; x=1692164950; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LVTaAMwRyC5EbNmGnKMt5GVO62sfdhMkzEYvy7bRsXA=; b=HksMRdmQlxJGaAzIgcLM/auBxYia5qm1fLniiD68p42fXfJ1SS2w1Nj9YbEBI8Gi4S OJ+RXDKJQ7giisLj77INp6qL7qiZNb2P74d0dNjGC952N4lZoLqOdJDES3g2kbpeoHWD zzLbpMO6FVevUTh0iAuMQehcx4dZT3bsmbi/ITyauRme/DzyE5V957G/ICj6cR5IW9fS YMPMsBtkjFpckcuEav/XH0nY7f8yrzE2pKVtTC+6P42qtbEtu/IiXTDRIvd9baAF34oL VtX5DM5PuR+1S13z0Jq60oyIu+jfMX+7vMPSmjstfcO+MTNAauxkdx69aR0iod1J8WXe uJVw== X-Gm-Message-State: AOJu0YwGKQScSx30hK/V2YB2y6qi7kcEVjLR2FhWg1VSsv6S+W8L9pK5 ejxtZe0FztYYGey7CrgQ+t/7KQ== X-Received: by 2002:a05:6a20:9147:b0:141:2cb:2954 with SMTP id x7-20020a056a20914700b0014102cb2954mr2498077pzc.3.1691560149975; Tue, 08 Aug 2023 22:49:09 -0700 (PDT) Received: from sunil-laptop ([106.51.83.242]) by smtp.gmail.com with ESMTPSA id z21-20020aa791d5000000b006829969e3b0sm9001358pfa.85.2023.08.08.22.49.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 22:49:09 -0700 (PDT) Date: Wed, 9 Aug 2023 11:19:00 +0530 From: Sunil V L To: Conor Dooley Cc: linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, Heikki Krogerus , "Rafael J . Wysocki" , Catalin Marinas , Atish Kumar Patra , Conor Dooley , Will Deacon , Haibo Xu , Jonathan Corbet , Marc Zyngier , Daniel Lezcano , Robert Moore , Andrew Jones , Albert Ou , Paul Walmsley , Bjorn Helgaas , Thomas Gleixner , Andy Shevchenko , Greg Kroah-Hartman , Daniel Scally , Palmer Dabbelt , Sakari Ailus , Anup Patel , Len Brown Subject: Re: [RFC PATCH v1 12/21] irqchip/riscv-intc: Use swnode framework to create fwnode Message-ID: References: <20230803175916.3174453-1-sunilvl@ventanamicro.com> <20230803175916.3174453-13-sunilvl@ventanamicro.com> <20230808-chuck-jailhouse-0cb08b55d1bd@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230808-chuck-jailhouse-0cb08b55d1bd@spud> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 Tue, Aug 08, 2023 at 09:31:49AM +0100, Conor Dooley wrote: > Hey Sunil, > > On Thu, Aug 03, 2023 at 11:29:07PM +0530, Sunil V L wrote: > > By using swnode framework, all data from ACPI tables can > > be populated as properties of the swnode. This simplifies > > the driver code and removes the need for ACPI vs DT checks. > > Use this framework for RISC-V INTC driver. > > btw, you are permitted to use more than 60 characters in a commit > message... > Sure. > > > > Signed-off-by: Sunil V L > > --- > > Documentation/riscv/acpi.rst | 21 +++++++++++++++ > > arch/riscv/include/asm/acpi.h | 1 + > > drivers/acpi/riscv/Makefile | 2 +- > > drivers/acpi/riscv/irqchip.c | 46 ++++++++++++++++++++++++++++++++ > > drivers/irqchip/irq-riscv-intc.c | 12 ++++----- > > 5 files changed, 75 insertions(+), 7 deletions(-) > > create mode 100644 drivers/acpi/riscv/irqchip.c > > > > diff --git a/Documentation/riscv/acpi.rst b/Documentation/riscv/acpi.rst > > index 9870a282815b..e2406546bc16 100644 > > --- a/Documentation/riscv/acpi.rst > > +++ b/Documentation/riscv/acpi.rst > > @@ -8,3 +8,24 @@ The ISA string parsing rules for ACPI are defined by `Version ASCIIDOC > > Conversion, 12/2022 of the RISC-V specifications, as defined by tag > > "riscv-isa-release-1239329-2023-05-23" (commit 1239329 > > ) `_ > > + > > +Interrupt Controller Drivers > > +======= > > + > > +ACPI drivers for RISC-V interrupt controllers use software node framework to > > +create the fwnode for the interrupt controllers. Below properties are > > +additionally required for some firmware nodes apart from the properties > > +defined by the device tree bindings for these interrupt controllers. The > > +properties are created using the data in MADT table. > > I don't really understand this text, specifically what you are getting > at w/ the dependency on devicetree properties. What exactly does "apart > from the properties defined by the devicetree bindings" mean? > > Is there prior art for this kind of "ACPI needs swnodes that look > vaguely similar to devicetree" for other interrupt controllers? > Never mind. This will not be required with Marc's feedback. Thanks, Sunil