From: David Daney <ddaney.cavm@gmail.com>
To: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>,
"Rafael J. Wysocki" <rjw@rjwysocki.net>,
Len Brown <lenb@kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Robert Richter <rrichter@cavium.com>,
Tomasz Nowicki <tn@semihalf.com>,
David Daney <david.daney@cavium.com>
Subject: Re: [PATCH] ACPI / property: Export a couple of symbols.
Date: Thu, 17 Mar 2016 13:21:54 -0700 [thread overview]
Message-ID: <56EB11E2.6050608@gmail.com> (raw)
In-Reply-To: <CAJZ5v0gP4uWs8ka8SUGzxJ9GcRKdMiRMpc+OktBTHtug9MAdBw@mail.gmail.com>
On 03/17/2016 06:00 AM, Rafael J. Wysocki wrote:
> On Thu, Mar 17, 2016 at 9:09 AM, Mika Westerberg
> <mika.westerberg@linux.intel.com> wrote:
>> On Wed, Mar 16, 2016 at 05:23:19PM -0700, David Daney wrote:
>>> From: David Daney <david.daney@cavium.com>
>>>
>>> The acpi_dev_prop_read() and acpi_dev_prop_read_single() can be called
>>> by drivers. Add EXPORT_SYMBOL_GPL to them to allow use by modular
>>> drivers. This makes them consistent with acpi_dev_get_property() and
>>> acpi_node_get_property_reference() which are already exported.
>>>
>>> Signed-off-by: David Daney <david.daney@cavium.com>
>>> ---
>>> FWIW: We hope to submit soon Cavium Thunder networking patches that
>>> fail under modular builds without these exports.
>>
>> You should not be using these functions directly in drivers.
>
> That's exactly my point.
>
OK, for the sake of argument I will concede that my particular use of
acpi_dev_prop_read_single() is incorrect.
Let me ask you this:
What is the point of the code in drivers/acpi/property.c?
acpi_dev_prop_read() and acpi_dev_prop_read_single() are not used
anywhere that I can see in the kernel, would you accept a patch to
remove them?
But from a philosophical point of view, what is the underlying problem
of having drivers extract property information from the ACPI tables
corresponding to the devices they control.
Specifically, I am trying to understand how to port drivers that
currently successfully use OF device tree so that they are usable in
systems with ACPI based firmware.
Thanks in advance,
David Daney
next prev parent reply other threads:[~2016-03-17 20:21 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 0:23 [PATCH] ACPI / property: Export a couple of symbols David Daney
2016-03-17 1:25 ` Rafael J. Wysocki
2016-03-17 8:09 ` Mika Westerberg
2016-03-17 13:00 ` Rafael J. Wysocki
2016-03-17 20:21 ` David Daney [this message]
2016-03-17 21:50 ` Rafael J. Wysocki
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=56EB11E2.6050608@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=david.daney@cavium.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=rafael@kernel.org \
--cc=rjw@rjwysocki.net \
--cc=rrichter@cavium.com \
--cc=tn@semihalf.com \
/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;
as well as URLs for NNTP newsgroup(s).