From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Rafael J. Wysocki" <rjw@sisk.pl>
Cc: LKML <linux-kernel@vger.kernel.org>,
Linux PM list <linux-pm@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Len Brown <lenb@kernel.org>,
Mathias Nyman <mathias.nyman@linux.intel.com>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
Lv Zheng <lv.zheng@intel.com>, Huang Ying <ying.huang@intel.com>,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
"H. Peter Anvin" <hpa@zytor.com>, x86 list <x86@kernel.org>,
Tony Luck <tony.luck@intel.com>
Subject: Re: [PATCH 1/5] driver core / ACPI: Move ACPI support to core device and driver types
Date: Wed, 31 Oct 2012 09:24:07 -0700 [thread overview]
Message-ID: <20121031162407.GA318@kroah.com> (raw)
In-Reply-To: <1825320.jYYkSTpTOm@vostro.rjw.lan>
On Wed, Oct 31, 2012 at 10:38:29AM +0100, Rafael J. Wysocki wrote:
> From: Mika Westerberg <mika.westerberg@linux.intel.com>
>
> With ACPI 5 we are starting to see devices that don't natively support
> discovery but can be enumerated with the help of the ACPI namespace.
> Typically, these devices can be represented in the Linux device driver
> model as platform devices or some serial bus devices, like SPI or I2C
> devices.
>
> Since we want to re-use existing drivers for those devices, we need a
> way for drivers to specify the ACPI IDs of supported devices, so that
> they can be matched against device nodes in the ACPI namespace. To
> this end, it is sufficient to add a pointer to an array of supported
> ACPI device IDs, that can be provided by the driver, to struct device.
>
> Moreover, things like ACPI power management need to have access to
> the ACPI handle of each supported device, because that handle is used
> to invoke AML methods associated with the corresponding ACPI device
> node. The ACPI handles of devices are now stored in the archdata
> member structure of struct device whose definition depends on the
> architecture and includes the ACPI handle only on x86 and ia64. Since
> the pointer to an array of supported ACPI IDs is added to struct
> device_driver in an architecture-independent way, it is logical to
> move the ACPI handle from archdata to struct device itself at the same
> time. This also makes code more straightforward in some places and
> follows the example of Device Trees that have a poiter to struct
> device_node in there too.
>
> This changeset is based on Mika Westerberg's work.
>
> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> ---
> arch/ia64/include/asm/device.h | 3 ---
> arch/x86/include/asm/device.h | 3 ---
> drivers/acpi/glue.c | 14 ++++++--------
> include/acpi/acpi_bus.h | 2 +-
> include/linux/device.h | 4 ++++
> 5 files changed, 11 insertions(+), 15 deletions(-)
The driver core pieces look fine to me:
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
next prev parent reply other threads:[~2012-10-31 16:24 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-31 9:31 [PATCH 0/5] ACPI-based enumeration of devices that are not discoverable natively Rafael J. Wysocki
2012-10-31 9:33 ` [PATCH 2/5] ACPI: Provide generic functions for matching ACPI device nodes Rafael J. Wysocki
2012-10-31 9:34 ` [PATCH 3/5] ACPI / x86: Export acpi_[un]register_gsi() Rafael J. Wysocki
2012-10-31 9:35 ` [PATCH 4/5] ACPI / ia64: " Rafael J. Wysocki
2012-10-31 9:36 ` [PATCH 5/5] ACPI: Add support for platform bus type Rafael J. Wysocki
2012-11-01 6:34 ` Yinghai Lu
2012-11-01 14:35 ` Rafael J. Wysocki
2012-11-01 16:19 ` Yinghai Lu
2012-11-01 21:21 ` Rafael J. Wysocki
2012-11-01 22:38 ` Yinghai Lu
2012-11-01 23:17 ` Rafael J. Wysocki
2012-10-31 9:38 ` [PATCH 1/5] driver core / ACPI: Move ACPI support to core device and driver types Rafael J. Wysocki
2012-10-31 16:24 ` Greg Kroah-Hartman [this message]
2012-10-31 18:42 ` Rafael J. Wysocki
2012-10-31 18:44 ` H. Peter Anvin
2012-10-31 19:00 ` Rafael J. Wysocki
2012-10-31 20:03 ` Luck, Tony
2012-10-31 20:30 ` Rafael J. Wysocki
2012-10-31 20:33 ` Luck, Tony
2012-10-31 21:06 ` Rafael J. Wysocki
2012-10-31 21:19 ` Mika Westerberg
2012-10-31 21:36 ` Luck, Tony
2012-10-31 21:46 ` 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=20121031162407.GA318@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=andriy.shevchenko@linux.intel.com \
--cc=hpa@zytor.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=lv.zheng@intel.com \
--cc=mathias.nyman@linux.intel.com \
--cc=mika.westerberg@linux.intel.com \
--cc=rjw@sisk.pl \
--cc=tony.luck@intel.com \
--cc=x86@kernel.org \
--cc=ying.huang@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
Powered by JetHome