Message ID | 20230130182225.2471414-5-sunilvl@ventanamicro.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2331247wrn; Mon, 30 Jan 2023 10:27:06 -0800 (PST) X-Google-Smtp-Source: AK7set+A5A+3WwFziC46uE1kLizGr3ETu/JtQWFg6ihSe6CJcKWg+BUYzhfIM82rbaJOODcX7/ZC X-Received: by 2002:aa7:df15:0:b0:4a2:2d5c:9b06 with SMTP id c21-20020aa7df15000000b004a22d5c9b06mr10046654edy.17.1675103226118; Mon, 30 Jan 2023 10:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675103226; cv=none; d=google.com; s=arc-20160816; b=GRDmmnsYWt2M2rcilD8yp6KpFM/+ZN0LDKqdKb7f552TpZPQavgTRxjO12Au6gEA4i /fN+CcmQo92BHdt6buRNnv+HkfJgNbi+DgHF8KsoaaSvY4bbqNcYmDkqaXst7b3T0llw d2sgJ4U+LQFTFVgtVe2rkj7/K+myF+c1UggEgAUYHKgBPKLzn9B+HhtYq4n8qnh7tvGb cbm8wE1cgYmrBgjxlftre6mjTnE3ftgRsg9z/yhHkIAESAjCS1wNk2cfFSSrAWxk0P0K Bhitzlsqwad3wEYVYGKTrd0YMyP6MktmkdeZVmFr6+TPGCnN893bSzl3YhiCuyPg4WPh WnYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=4Gxugdzqzv74vjLFN2TZ8EvRMhrnTxWt9U64bf/S3Oc=; b=0aNObCi0EpiwY2/SGPioak/2tZ2BRGHioV1y1tUYpvpnsDZHEjTYpekNQ5fpuKWPUK PwxvFxeLaFn4Jzn9ghpS32cy9ljcHmSlDddmZFoalD5ukf9q4BzlssHfwNifgLcq995f 3Ph/a85mCPLo5CwMvzkI3VIJaVZLsuCAFkk1+ZmQbFMbC6kKG6BBbJmYqMs/DpkRQZLf QIVAz9vuy6fJoPlEGb+CY0YEkYmCtRApqUGvkmTZ01sRR7VKDL5RVuaHFwq1f6ZB2vR8 +IsmFTlQbWOkwRTbFNcbhPP6/SchH2tziN3TUDgOzGP+Zg5nSrGgGpqRRE4j17wF1uGz aJUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=HoT+WfLC; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q9-20020a056402032900b004a24c637b5asi2627622edw.475.2023.01.30.10.26.41; Mon, 30 Jan 2023 10:27:06 -0800 (PST) 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=HoT+WfLC; 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 S237898AbjA3SXi (ORCPT <rfc822;maxin.john@gmail.com> + 99 others); Mon, 30 Jan 2023 13:23:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237518AbjA3SX0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 30 Jan 2023 13:23:26 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49D4A76BD for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 10:22:55 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id z1so5003838plg.6 for <linux-kernel@vger.kernel.org>; Mon, 30 Jan 2023 10:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4Gxugdzqzv74vjLFN2TZ8EvRMhrnTxWt9U64bf/S3Oc=; b=HoT+WfLCPPdnBPUY4u//wG/nqz54nnbVNEyB/zyFuh1wqwl7dUUdORc82V0pXzgGqI P+YM1ucudSo6RbZP1NN8kR1hUTZHRzmX3X900Mruv8tZUv4pInMpR+m5wxoBS9EOCAan KAz+PN2XnNL5mEey1FiMMcqZnFzJ5utcOjeTPA6tGPvAI354RrTSw64eae8l9V3M7mNe UOTtpDsckz5dXpGxWPyskJY1LeUUYZ7v7meb1XdF/dwjbC/P4hZJlV9J05dYQB5Y43Y3 OwizeHCRBrpe676Q1ZZ55JKz5XeEHId+0SX3YBESwKsZLHWSYkYSSOQpQXIKVCIwWoxa EH/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4Gxugdzqzv74vjLFN2TZ8EvRMhrnTxWt9U64bf/S3Oc=; b=0XZ5sIFKNVok9T06TO8y8dWGS/uEFwSodJgY6ylkAJr59NLbRqU7f6qZm+yMaztKZs SwXR9CqmUdv8/PoZUSRRxLQ5XlrSsISi2lpdstsQ+2i2wZyvR4iSOR/Xv6nhZpk8shlE ZklzKyrhNt8G0tqAnp2CvlOuB9DgtnjF1vFLnSc+GuTYsKDwGo/r4kl8Q7pYhnQchlSw LCiC0l3OZSOA8jr6C3cPJWIR+rIOIpoyGL0TH1oOC0/nVaAYVJbLv3e+PvdQWZZfcG5P Nu1k8k+id8h15HJoAJ6hiZ1EZBSHEfr0sVpw3Hf+Jt00UYKpMCP5EBw39OT0HD8//5As YJmA== X-Gm-Message-State: AO0yUKWCNjHglrNaP78fahdgPmUD2CFGIxsgrwBvZls8An7vJBdYBLcv Oi3t7Dt2mikI5MayGPzoAwpbZQ== X-Received: by 2002:a17:90b:33c2:b0:22c:1bd6:77de with SMTP id lk2-20020a17090b33c200b0022c1bd677demr18654479pjb.3.1675102972682; Mon, 30 Jan 2023 10:22:52 -0800 (PST) Received: from kerodipc.Dlink ([49.206.9.96]) by smtp.gmail.com with ESMTPSA id j193-20020a638bca000000b00478162d9923sm7000291pge.13.2023.01.30.10.22.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 10:22:52 -0800 (PST) From: Sunil V L <sunilvl@ventanamicro.com> To: Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu>, "Rafael J . Wysocki" <rafael@kernel.org>, Len Brown <lenb@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org>, Daniel Lezcano <daniel.lezcano@linaro.org>, Jonathan Corbet <corbet@lwn.net> Cc: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Anup Patel <apatel@ventanamicro.com>, Andrew Jones <ajones@ventanamicro.com>, Atish Patra <atishp@rivosinc.com>, Sunil V L <sunilvl@ventanamicro.com> Subject: [PATCH 04/24] RISC-V: ACPI: Add empty headers to enable ACPI core Date: Mon, 30 Jan 2023 23:52:05 +0530 Message-Id: <20230130182225.2471414-5-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20230130182225.2471414-1-sunilvl@ventanamicro.com> References: <20230130182225.2471414-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756473040419518233?= X-GMAIL-MSGID: =?utf-8?q?1756473040419518233?= |
Series |
Add basic ACPI support for RISC-V
|
|
Commit Message
Sunil V L
Jan. 30, 2023, 6:22 p.m. UTC
Few header files are required unconditionally by ACPI core.
So add empty header files for now and update it when needed.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
arch/riscv/include/asm/acenv.h | 17 +++++++++++++++++
arch/riscv/include/asm/cpu.h | 9 +++++++++
2 files changed, 26 insertions(+)
create mode 100644 arch/riscv/include/asm/acenv.h
create mode 100644 arch/riscv/include/asm/cpu.h
Comments
On Mon, Jan 30, 2023 at 11:52:05PM +0530, Sunil V L wrote: > Few header files are required unconditionally by ACPI core. nit: A few. Without the article this has a different meaning. > So add empty header files for now and update it when needed. s/ and update it when needed// ;) > > Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> > --- > arch/riscv/include/asm/acenv.h | 17 +++++++++++++++++ > arch/riscv/include/asm/cpu.h | 9 +++++++++ > 2 files changed, 26 insertions(+) > create mode 100644 arch/riscv/include/asm/acenv.h > create mode 100644 arch/riscv/include/asm/cpu.h > > diff --git a/arch/riscv/include/asm/acenv.h b/arch/riscv/include/asm/acenv.h > new file mode 100644 > index 000000000000..bbc38ecdf753 > --- /dev/null > +++ b/arch/riscv/include/asm/acenv.h > @@ -0,0 +1,17 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +/* > + * RISC-V specific ACPICA environments and implementation > + * > + * Copyright (C) 2014, Linaro Ltd. > + * Author: Hanjun Guo <hanjun.guo@linaro.org> > + * Author: Graeme Gregory <graeme.gregory@linaro.org> > + * Copyright (C) 2023, Ventana Micro Systems Inc. > + * Author: Sunil V L <sunilvl@ventanamicro.com> More out of idle curiosity than anything else, but what, may I ask, is copyrightable about 2 empty files? Triply so given there are !3! contributors to said empty file! > + */ > + > +#ifndef _ASM_ACENV_H > +#define _ASM_ACENV_H > + > +/* It is required unconditionally by ACPI core, update it when needed. */ How come this file gets a comment and the other doesn't? Also the comment doesn't really make much sense to me in a vacuum, and ideally would read like: "This header is required unconditionally by the ACPI core" That is, if a comment is really even needed. Cheers, Conor. > + > +#endif /* _ASM_ACENV_H */ > diff --git a/arch/riscv/include/asm/cpu.h b/arch/riscv/include/asm/cpu.h > new file mode 100644 > index 000000000000..51ec1a89a7a9 > --- /dev/null > +++ b/arch/riscv/include/asm/cpu.h > @@ -0,0 +1,9 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ > +/* > + * Copyright (C) 2014 ARM Ltd. > + * Copyright (C) 2023 Ventana Micro Systems Inc. > + */ > +#ifndef __ASM_CPU_H > +#define __ASM_CPU_H > + > +#endif /* __ASM_CPU_H */ > -- > 2.38.0 >
diff --git a/arch/riscv/include/asm/acenv.h b/arch/riscv/include/asm/acenv.h new file mode 100644 index 000000000000..bbc38ecdf753 --- /dev/null +++ b/arch/riscv/include/asm/acenv.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * RISC-V specific ACPICA environments and implementation + * + * Copyright (C) 2014, Linaro Ltd. + * Author: Hanjun Guo <hanjun.guo@linaro.org> + * Author: Graeme Gregory <graeme.gregory@linaro.org> + * Copyright (C) 2023, Ventana Micro Systems Inc. + * Author: Sunil V L <sunilvl@ventanamicro.com> + */ + +#ifndef _ASM_ACENV_H +#define _ASM_ACENV_H + +/* It is required unconditionally by ACPI core, update it when needed. */ + +#endif /* _ASM_ACENV_H */ diff --git a/arch/riscv/include/asm/cpu.h b/arch/riscv/include/asm/cpu.h new file mode 100644 index 000000000000..51ec1a89a7a9 --- /dev/null +++ b/arch/riscv/include/asm/cpu.h @@ -0,0 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (C) 2014 ARM Ltd. + * Copyright (C) 2023 Ventana Micro Systems Inc. + */ +#ifndef __ASM_CPU_H +#define __ASM_CPU_H + +#endif /* __ASM_CPU_H */