Commit
76540969b1cf26349eb8867b57657b03c89025e5
Exists in
master
and in
16 other branches
dlt-processor-sdk-linux-03.00.00.04, processor-sdk-linux-01.00.00, processor-sdk-linux-02.00.01, smarc-ti-linux-3.14.y, smarc-ti-linux-3.15.y, smarc-ti-lsk-linux-4.1.y, smarct3x-processor-sdk-04.01.00.06, smarct3x-processor-sdk-linux-02.00.01, smarct3x-processor-sdk-linux-03.00.00.04, smarct4x-800-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-04.01.00.06, smarct4x-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-linux-03.00.00.04, ti-linux-3.14.y, ti-linux-3.15.y, ti-lsk-linux-4.1.y
Merge back earlier acpi-hotplug material.
Showing
3 changed files
Side-by-side Diff
... |
... |
@@ -65,6 +65,9 @@ |
65
|
65 |
.ids = root_device_ids, |
66
|
66 |
.attach = acpi_pci_root_add, |
67
|
67 |
.detach = acpi_pci_root_remove, |
|
68 |
+ .hotplug = { |
|
69 |
+ .ignore = true, |
|
70 |
+ }, |
68
|
71 |
}; |
69
|
72 |
|
70
|
73 |
static DEFINE_MUTEX(osc_lock); |
... |
... |
@@ -1772,7 +1772,7 @@ |
1772
|
1772 |
*/ |
1773
|
1773 |
list_for_each_entry(hwid, &pnp.ids, list) { |
1774
|
1774 |
handler = acpi_scan_match_handler(hwid->id, NULL); |
1775
|
|
- if (handler) { |
|
1775 |
+ if (handler && !handler->hotplug.ignore) { |
1776
|
1776 |
acpi_install_notify_handler(handle, ACPI_SYSTEM_NOTIFY, |
1777
|
1777 |
acpi_hotplug_notify_cb, handler); |
1778
|
1778 |
break; |
... |
... |
@@ -100,6 +100,7 @@ |
100
|
100 |
struct acpi_hotplug_profile { |
101
|
101 |
struct kobject kobj; |
102
|
102 |
bool enabled:1; |
|
103 |
+ bool ignore:1; |
103
|
104 |
enum acpi_hotplug_mode mode; |
104
|
105 |
}; |
105
|
106 |
|