From: Matthew Garrett <mjg59@srcf.ucam.org>
To: Brandon Anderson <brandon.anderson@amd.com>
Cc: linux@arm.linux.org.uk, rjw@rjwysocki.net,
linaro-acpi@lists.linaro.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH V2 2/4] ACPI/ARM: Add AMBA bus ACPI module
Date: Fri, 22 Nov 2013 21:02:15 +0000 [thread overview]
Message-ID: <20131122210215.GB16998@srcf.ucam.org> (raw)
In-Reply-To: <1385143964-22938-3-git-send-email-brandon.anderson@amd.com>
On Fri, Nov 22, 2013 at 12:12:42PM -0600, Brandon Anderson wrote:
> + status = acpi_evaluate_object_typed(handle, "_DSM",
> + &input, &output, ACPI_TYPE_PACKAGE);
We've got enough uses of _DSM that it'd be nice to have a generic helper
function for setting them up. Not that this is a blocker.
> + /* parse 2 objects per entry */
But if we're expecting anyone to use _DSM for DT properties, this really
should be a generic function. Don't make it AMBA specific.
> + /* key=value format for clocks is:
> + * "clock-name"="apb_pclk \\_SB.CLK0"
> + */
> + if (acpi_amba_dsm_lookup(handle, "clock-name", index, &entry) != 0)
> + return NULL;
Why use DT properties for this? If you're just pointing to something
else in the ACPI namespace then add a method that returns the object.
--
Matthew Garrett | mjg59@srcf.ucam.org
next prev parent reply other threads:[~2013-11-22 21:02 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-22 18:12 [PATCH V2 0/4] ACPI/ARM: AMBA bus ACPI module Brandon Anderson
2013-11-22 18:12 ` [PATCH V2 1/4] ACPI/ARM: Load fixed-clk module early Brandon Anderson
2013-11-22 18:56 ` Olof Johansson
2013-11-22 18:12 ` [PATCH V2 2/4] ACPI/ARM: Add AMBA bus ACPI module Brandon Anderson
2013-11-22 21:02 ` Matthew Garrett [this message]
2013-11-22 18:12 ` [PATCH V2 3/4] ACPI/ARM: Add ACPI to AMBA SPI driver Brandon Anderson
2013-11-22 19:52 ` [Linaro-acpi] " Grant Likely
2013-11-22 20:12 ` Al Stone
2013-11-22 20:17 ` Anderson, Brandon
2013-11-22 22:16 ` Russell King - ARM Linux
2013-11-22 18:12 ` [PATCH V2 4/4] ACPI/ARM: Remove sections of DTS definition Brandon Anderson
2013-11-22 19:48 ` [Linaro-acpi] " Grant Likely
2013-11-22 20:08 ` Anderson, Brandon
2013-11-22 19:03 ` [PATCH V2 0/4] ACPI/ARM: AMBA bus ACPI module Olof Johansson
2013-11-22 19:44 ` Anderson, Brandon
2013-11-22 22:17 ` Rafael J. Wysocki
2013-11-23 0:10 ` Olof Johansson
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-all 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=20131122210215.GB16998@srcf.ucam.org \
--to=mjg59@srcf.ucam.org \
--cc=brandon.anderson@amd.com \
--cc=linaro-acpi@lists.linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=rjw@rjwysocki.net \
/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