]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / scan: Apply default enumeration to devices with ACPI drivers
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 16 Apr 2017 23:19:50 +0000 (01:19 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 19 Apr 2017 20:56:44 +0000 (22:56 +0200)
commit2ebea07686ab15cd1a6ada3f1d187b93cd6ff8cf
treefbe8c927609f4a3913e21558631ab5f79e9ba3d7
parentfea5a2e2f44fed869e77579193f71d9f69c365bd
ACPI / scan: Apply default enumeration to devices with ACPI drivers

The current code in acpi_bus_attach() is inconsistent with respect
to device objects with ACPI drivers bound to them, as it allows
ACPI drivers to bind to device objects with existing "physical"
device companions, but it doesn't allow "physical" device objects
to be created for ACPI device objects with ACPI drivers bound to
them.  Thus, in some cases, the outcome depends on the ordering
of events which is confusing at best.

For this reason, modify acpi_bus_attach() to call
acpi_default_enumeration() for device objects with the
pnp.type.platform_id flag set regardless of whether or not
any ACPI drivers are bound to them.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Joey Lee <jlee@suse.com>
drivers/acpi/scan.c