aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-24 02:18:01 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-04-24 02:18:01 +0200
commit7d284352f9cbc032f2294024b1a6b5c06765c246 (patch)
treee972852cb7a632f230e05bba3eb1eabfa399c431 /kernel
parentACPI / scan: Annotate physical_node_lock in acpi_scan_is_offline() (diff)
downloadlinux-dev-7d284352f9cbc032f2294024b1a6b5c06765c246.tar.xz
linux-dev-7d284352f9cbc032f2294024b1a6b5c06765c246.zip
ACPI / scan: Add a scan handler for PRP0001
If the special PRP0001 device ID is present in the given device's list of ACPI/PNP IDs and the device has a valid "compatible" property in the _DSD, it should be enumerated using the default mechanism, unless some scan handlers match the IDs preceding PRP0001 in the device's list of ACPI/PNP IDs. In addition to that, no scan handlers matching the IDs following PRP0001 in that list should be attached to the device. To make that happen, define a scan handler that will match PRP0001 and trigger the default enumeration for the matching devices if the "compatible" property is present for them. Since that requires the check for platform_id and device->handler to be removed from acpi_default_enumeration(), move the fallback invocation of acpi_default_enumeration() to acpi_bus_attach() (after it's checked if there's a matching ACPI driver for the device), which is a better place to call it, and do the platform_id check in there too (device->handler is guaranteed to be unset at the point where the function is looking for a matching ACPI driver). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions