From: Arnd Bergmann <arnd@arndb.de>
To: "Pallala, Ramakrishna" <ramakrishna.pallala@intel.com>
Cc: "mika.westerberg@linux.intel.com"
<mika.westerberg@linux.intel.com>,
"linaro-acpi@lists.linaro.org" <linaro-acpi@lists.linaro.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [Linaro-acpi] How to pass I2C platform_data under ACPI
Date: Thu, 03 Apr 2014 17:05:33 +0200 [thread overview]
Message-ID: <13098525.yKYfGA04Ut@wuerfel> (raw)
In-Reply-To: <D854C92F57B1B347B57E531E78D05EAD57464000@BGSMSX104.gar.corp.intel.com>
On Thursday 03 April 2014 13:59:18 Pallala, Ramakrishna wrote:
> >> We definitely don't want per-board match entries, that does not scale.
> >> The driver should be reasonably generic and get all the necessary data
> >> out of well-defined tables. You can have different IDs when there are
> >> only a few cases that are actually relevant, but it has to be
> >> conceivable that the same driver get used on future hardware without
> >> changes.
> >
> >Yes, I meant that when the platform data information is not available
> >in ACPI namespace, then (and only then) pass the data by means of different IDs.
> >
> >Preferably this information is included in the ACPI namespace.
>
> The idea is use the single platform_data struct and initiaze it
> accordingly from the driver's __init call based on the board/platform.
In general, you should think of it as being isolated from the board or
platform question, and not rely on an an initcall to do this for you.
A device driver, in particular for a device on something like an i2c
bus, should be able to figure out all the dependencies in its own
probe() function, without code on the platform side or in a specific
driver initcall.
What information it needs of course depends on the specific device,
but if you boot using FDT or ACPI, all the information you need should
be encoded in the data passed from the boot loader in a generic and
documented fashion. What data specifically do you want to pass here
that was previously encoded in platform data?
Arnd
prev parent reply other threads:[~2014-04-03 15:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-03 8:10 How to pass I2C platform_data under ACPI Pallala, Ramakrishna
2014-04-03 11:12 ` mika.westerberg
2014-04-03 11:25 ` Pallala, Ramakrishna
2014-04-03 11:38 ` mika.westerberg
2014-04-03 13:34 ` [Linaro-acpi] " Arnd Bergmann
2014-04-03 13:58 ` mika.westerberg
2014-04-03 13:59 ` Pallala, Ramakrishna
2014-04-03 15:05 ` Arnd Bergmann [this message]
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=13098525.yKYfGA04Ut@wuerfel \
--to=arnd@arndb.de \
--cc=linaro-acpi@lists.linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mika.westerberg@linux.intel.com \
--cc=ramakrishna.pallala@intel.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