ACPI: make ACPI use driver model
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest14 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | ACPI: clean up scan.cdrivers/ | +316 | 0 replies | |
| 2/14 | ACPI: rename some functionsdrivers/ | +7 | 0 replies | |
| 3/14 | ACPI: add device_driver and hepler functionsdrivers/ include/ | +3 | 0 replies | |
| 4/14 | ACPI: add ACPI bus_type for driver modeldrivers/ drivers/ drivers/ +2 more | +105 | 0 replies | |
| 5/14 | ACPI: change registration interface to follow driver modeldrivers/ include/ | +30 | 0 replies | |
| 6/14 | ACPI: adjust init orderdrivers/ | +1 | 0 replies | |
| 7/14 | ACPI: convert to sysfs frameworkdrivers/ drivers/ drivers/ +2 more | +49 | 0 replies | |
| 8/14 | ACPI: add acpi_bus_ops in acpi_devicedrivers/ include/ | +29 | 0 replies | |
| 9/14 | ACPI: add acpi_bus_removal_type in acpi_devicedrivers/ include/ | +5 | 0 replies | |
| 10/14 | ACPI: consolidate two motherboard drivers into onedrivers/ | +4 | 0 replies | |
| 11/14 | ACPI: Convert ACPI PCI .bind/.unbind to use PCI bridge driverdrivers/ drivers/ drivers/ | +52 | 0 replies | |
| 12/14 | ACPI: Set fake hid for non-PNPID ACPI devicesdrivers/ drivers/ drivers/ +2 more | +63 | 0 replies | |
| 13/14 | ACPI: use PNPID:instance_no as bus_id of ACPI devicedrivers/ | +94 | 6 replies | |
| 14/14 | ACPI: ibm_acpi: don't use '/' in driver namesdrivers/ | +1 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/14] ACPI: make ACPI use driver model
The main purpose of this patch series is to make ACPI use driver model And these are updated patches against 2.6.19.
Patrick has posted patches on rewriting ACPI driver model in November 2005. And recently Shaohua send me a prototype on making ACPI use driver model. This patch series bases on both Patrick and Shaohua's previous work.
Two features are gonna be changed by applying this series of patches.
1. ACPI driver model.
ACPI driver are made to follow Linux driver model.
The main work is to convert the registration interfaces,so that ACPI devices are registered with the global device tree.
Note the new .uevent method mark ACPI drivers by PNPID
instead of by name. Udev script needs to look for "HWID = " or "COMPTID = " to load the right ACPI driver.
2. ACPI sysfs interface.
As a result of using driver model, ACPI devices is added in the /sys/device tree. So _EJ0 is added as a property of ACPI device in device tree. ACPI namespace nodes that used to be shown under /sys/firm/acpi is deleted.
The corresponding userspace script needs to be changed for hot removal.
Note that this is only the first step of ACPI sysfs conversion work The next step is to duplicate ACPI procfs functions in sysfs.