From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C30BBEB64DD for ; Wed, 9 Aug 2023 05:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8F+Zo7uTuwy32CyOy/NVvVMGwtCvvg1uyAXL/Yqem0s=; b=NtH943sG487Gzo 0RiGZM+shdMoNgzpWzOB7HhD/I9yfwGqYBnHt0Nqyu5TeezBDaEualzqpk/HBcR+MMtj6h38LyX50 7DUM72AqNrJSVEvJeVMNGasT+r6uV5pNWn3cAcYgvhunRz8NDhjW0ZFfLtCQ7fAGD6aV0NZ0d539b TgCraOrrCrUu5wecgZIU3ha73tdSTx70HkhXS1JU7tPhGX0E4DQprDX9tNJwf7TFooJxpRflP6kAR F6BZhhcwmokBMGMiDtBET3V9RFyGBjcaESX+k6odSCZQNABMC4hbY0icMx9dmumDxYYSuU6/Fzyt5 MBEz/HUq9tM7fo6BziUg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTc2Q-0045w4-1x; Wed, 09 Aug 2023 05:47:18 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTc2N-0045uV-1c for linux-arm-kernel@lists.infradead.org; Wed, 09 Aug 2023 05:47:16 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-1bc63ef9959so30086175ad.2 for ; Tue, 08 Aug 2023 22:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691560033; x=1692164833; 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=YCeIptmtpKy5q98QjD4SUtd19PTpMTjSWPCM/pRkRaI=; b=haeX18sUQdxxqI7SQwmn8SHKct03Vake+IzrKwZQdTEOTgqFjhH0yzb6gVvecUp++M LMJV1cVhnL5cBk05TA0BuUeVgPeqBBT5xVYYg8Fmt6oC4KEFpsb20dfFQp1sUhdBnv+U Agka3B9ydKgYsr/ueR6T9DXKuK4mFb7fnEgx45MrDCaANoCelYzVXJwVJd52Zm6ffFeo vlwzfD2WG7skOwNLlyX+ou/s/8GC3sc0bR5XFkYBOl3Ac4CqFz3U8O83n9htUtpGlbxX 5MHrYLjZAe/fPUGNNnFPHYXY6gLf92Ljy74BtQmvCjyQU740MtA8mhZgL163A/u/3c14 57jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691560033; x=1692164833; 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=YCeIptmtpKy5q98QjD4SUtd19PTpMTjSWPCM/pRkRaI=; b=kdoWbfwDlCbDHh8HB1QM6UIrpPTgMbUXob9OYxTdi39nLI2Z7as5GaQoEMu9fhKkQM ihmef4JM5jO+DGG9JzAsiJVztXzSXS2ydVNi2ULAO2akkSQ+RJNoGecA4t/j14nLEjhY tN9rjU9FlkqZoj6ez648n9n747lSZ7NJEXTyradtNdsrUFYogkePZgl0C+2B8S4UBtBu t+ZhtuHmViZX16pwfanaUIeeivDv1ouekQ8eOhRwBuAOL78KmoEvMPJ3T/0n92a3KCH+ Wzn+nl3i3Jg7Ofvw0FZP82nm1JvROc2DmM4S8lAQciPeN/+aB72LIEPl4h618fIQgTvO Yfrg== X-Gm-Message-State: AOJu0YzaClIvB7xR6Cb6E/rUiwCXAuWjDX1nY0YHaCuPrqaWMsRpA+8/ I0HkDe8wJESrmKBo8bsTCiwMCw== X-Google-Smtp-Source: AGHT+IFrTYPQ+5b8uQBjS2fcGKsPAzUjAy1/yAOVWR8AwSQ1NP6723J3EcH5VFWoXC6GPw4jT3aUkA== X-Received: by 2002:a17:903:230d:b0:1bb:a85c:23cc with SMTP id d13-20020a170903230d00b001bba85c23ccmr2339537plh.15.1691560032814; Tue, 08 Aug 2023 22:47:12 -0700 (PDT) Received: from sunil-laptop ([106.51.83.242]) by smtp.gmail.com with ESMTPSA id r14-20020a170902be0e00b001bb381b8260sm10098918pls.100.2023.08.08.22.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 22:47:12 -0700 (PDT) Date: Wed, 9 Aug 2023 11:17:02 +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 20/21] RISC-V: ACPI: Create PLIC platform device Message-ID: References: <20230803175916.3174453-1-sunilvl@ventanamicro.com> <20230803175916.3174453-21-sunilvl@ventanamicro.com> <20230808-chalice-easing-1369c7386082@spud> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230808-chalice-easing-1369c7386082@spud> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230808_224715_539234_4BAA4F29 X-CRM114-Status: GOOD ( 21.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Conor, On Tue, Aug 08, 2023 at 09:41:45AM +0100, Conor Dooley wrote: > On Thu, Aug 03, 2023 at 11:29:15PM +0530, Sunil V L wrote: > > Since PLIC needs to be a platform device > > For the unwashed, why does the PLCI need to be a platform device? > (And while you're at that, please try to make use of the extra ~20 > characters per line that you can use here.) > Sure, let me add more details and use extra characters. > > probe the > > MADT and create platform devices for each PLIC in the > > system. Use software node framework for the fwnode > > which allows to create properties and hence the > > actual irqchip driver doesn't need to do anything > > different for ACPI vs DT. > > > > Signed-off-by: Sunil V L > > Co-developed-by: Haibo Xu > > Signed-off-by: Haibo Xu > > > +static struct fwnode_handle *acpi_plic_create_fwnode(struct acpi_madt_plic *plic) > > +{ > > + struct fwnode_handle *fwnode, *parent_fwnode; > > + struct riscv_irqchip_list *plic_element; > > + struct software_node_ref_args *refs; > > + struct property_entry props[8] = {}; > > + int nr_contexts; > > + > > + props[0] = PROPERTY_ENTRY_U32("riscv,gsi-base", plic->gsi_base); > > + props[1] = PROPERTY_ENTRY_U32("riscv,ndev", plic->num_irqs); > > + props[2] = PROPERTY_ENTRY_U32("riscv,max_prio", plic->max_prio); > > My OCD wants to know why this gets an _ but the others have a -. > It should be -. But with Marc's recommendation, this is no longer required. Thanks! Sunil _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel