From: "Rebecca Cran via groups.io" <rebecca=os.amperecomputing.com@groups.io>
To: devel@edk2.groups.io, nhi@os.amperecomputing.com
Cc: quic_llindhol@quicinc.com, chuong@os.amperecomputing.com,
rebecca@os.amperecomputing.com
Subject: Re: [edk2-devel] [edk2-platforms][PATCH 1/1] JadePkg: Add ACPI SPMI table
Date: Wed, 14 Aug 2024 07:53:08 -0600 [thread overview]
Message-ID: <2dbe2059-0b8d-4729-807a-0b1a141df618@os.amperecomputing.com> (raw)
In-Reply-To: <20240814033333.2360719-1-nhi@os.amperecomputing.com>
On 8/13/2024 9:33 PM, Nhi Pham via groups.io wrote:
This could be a static function.
> +EFI_STATUS
> +EFIAPI
> +AcpiInstallSpmiTable (
> + VOID
> + );
> +
> #endif /* ACPI_PLATFORM_H_ */
> diff --git a/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.c b/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.c
> index 28c422dff166..a82a93d23fa2 100644
> --- a/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.c
> +++ b/Platform/Ampere/JadePkg/Drivers/AcpiPlatformDxe/AcpiPlatformDxe.c
I believe the project now prefers the use of the C keyword "static".
> + // BCD Format
> + SpmiTable->SpecificationRevision = DeviceId.SpecificationVersion & 0xF0;
> + SpmiTable->SpecificationRevision |= (DeviceId.SpecificationVersion & 0x0F) << 8;
It took a second to understand this. Maybe combine it into a single
line, or change the '0x0F' to just '0xF'?
--
Rebecca
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#120338): https://edk2.groups.io/g/devel/message/120338
Mute This Topic: https://groups.io/mt/107889268/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2024-08-14 13:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-14 3:33 [edk2-devel] [edk2-platforms][PATCH 1/1] JadePkg: Add ACPI SPMI table Nhi Pham via groups.io
2024-08-14 13:53 ` Rebecca Cran via groups.io [this message]
2024-08-15 7:05 ` Nhi Pham via groups.io
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2dbe2059-0b8d-4729-807a-0b1a141df618@os.amperecomputing.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox