devices: acpi: Add UID to devices with common HID

Some OS might check for duplicates and bail out, if it can't create a
distinct mapping. According to ACPI 5.0 section 6.1.12, while _UID is
optional, it becomes required when there are multiple devices with the
same _HID.

Signed-off-by: Anatol Belski <ab@php.net>
This commit is contained in:
Anatol Belski
2020-08-13 23:18:17 +02:00
committed by Sebastien Boeuf
parent ebe61de0d1
commit eba42c392f
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -3438,6 +3438,7 @@ impl Aml for DeviceManager {
vec![
&aml::Name::new("_HID".into(), &aml::EISAName::new("PNP0A06")),
&aml::Name::new("_STA".into(), &0x0bu8),
&aml::Name::new("_UID".into(), &"PCI Hotplug Controller"),
&aml::Mutex::new("BLCK".into(), 0),
// I/O port for PCI hotplug controller
&aml::Name::new(