linux/drivers
Bjorn Helgaas bfbf76dca7 ACPI: use _HID when supplied by root-level devices
commit b7b30de53a upstream.

Previously, we assumed the only Device object immediately below the root
was the \_SB Scope (which the ACPI CA treats as a Device), so we forced
the HID of all such objects to ACPI_BUS_HID ("LNXSYBUS").

However, there are DSDTs that supply root-level Device objects with _HIDs.
This patch makes us pay attention to those _HIDs and only add the synthetic
ACPI_BUS_HID for root-level objects that do not supply their own _HID.

For example, this DSDT: https://bugzilla.kernel.org/show_bug.cgi?id=15605
contains:

    Scope (_SB) {
	...
    }
    Device (AMW0) {
	Name (_HID, EisaId ("PNP0C14"))
	...
    }

and we should use "PNP0C14" for the AMW0 device, not "LNXSYBUS".

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Tested-by: Yong Wang <yong.y.wang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
Tested-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-06-23 15:24:08 -07:00
..
accessibility
acpi ACPI: use _HID when supplied by root-level devices 2011-06-23 15:24:08 -07:00
amba
ata pata_cm64x: fix boot crash on parisc 2011-06-23 15:24:08 -07:00
atm atm/solos-pci: Don't include frame pseudo-header on transmit hex-dump 2011-04-14 16:53:44 -07:00
auxdisplay
base firmware_class: fix memory leak - free allocated pages 2010-08-02 10:21:25 -07:00
block nbd: limit module parameters to a sane value 2011-06-23 15:24:06 -07:00
bluetooth Bluetooth: Add MacBookAir3,1(2) support 2011-05-09 15:55:26 -07:00
cdrom
char i8k: Avoid lahf in 64-bit code 2011-06-23 15:24:04 -07:00
clocksource clocksource: sh_tmu: compute mult and shift before registration 2010-09-26 17:21:37 -07:00
connector connector: Delete buggy notification code. 2010-02-09 04:50:59 -08:00
cpufreq CPUFREQ: Remove cpufreq_stats sysfs entries on module unload. 2011-06-23 15:24:07 -07:00
cpuidle cpuidle: menu: fixed wrapping timers at 4.294 seconds 2011-06-23 15:24:04 -07:00
crypto crypto: padlock - Fix AES-CBC handling on odd-block-sized input 2010-12-09 13:27:10 -08:00
dca
dio
dma mv_xor: fix race in tasklet function 2011-01-07 14:43:17 -08:00
edac amd64_edac: Fix interleaving check 2011-01-07 14:43:06 -08:00
eisa
firewire firewire: ohci: fix race in AR split packet handling 2010-12-09 13:26:50 -08:00
firmware dcdbas: force SMI to happen when expected 2011-03-27 11:30:51 -07:00
gpio gpiolib: Actually set output state in wm831x_gpio_direction_output() 2010-03-15 08:49:57 -07:00
gpu drm/radeon/kms: fix for radeon on systems >4GB without hardware iommu 2011-06-23 15:24:06 -07:00
hid HID: add MacBookAir 3,1 and 3,2 support 2011-05-09 15:55:37 -07:00
hwmon hwmon: (applesmc) Add MacBookAir3,1(3,2) support 2011-05-09 15:55:17 -07:00
i2c i2c: Unregister dummy devices last on adapter removal 2011-02-17 15:37:03 -08:00
ide ide-cd: Do not access completed requests in the irq handler 2010-08-13 13:19:36 -07:00
idle
ieee1394
ieee802154
infiniband IB/cm: Bump reference count on cm_id before invoking callback 2011-03-23 13:16:43 -07:00
input Input: elantech - discard the first 2 positions on some firmwares 2011-05-09 15:55:08 -07:00
isdn isdn: avoid calling tty_ldisc_flush() in atomic context 2011-03-23 13:16:55 -07:00
leds leds-gpio: fix default state handling on OF platforms 2010-04-01 15:58:53 -07:00
lguest lguest: fix bug in setting guest GDT entry 2010-01-06 15:05:19 -08:00
macintosh macintosh/therm_adt746x: Fix sysfs attributes lifetime 2010-03-15 08:49:46 -07:00
mca
md md/raid5: fix FUA request handling in ops_run_io() 2011-06-23 15:24:08 -07:00
media V4L/DVB: Add Elgato EyeTV Diversity to dibcom driver 2011-05-09 15:55:30 -07:00
memstick memstick: fix hangs on unexpected device removal in mspro_blk 2010-08-26 16:41:32 -07:00
message mptfusion: Fix Incorrect return value in mptscsih_dev_reset 2011-03-02 09:46:33 -05:00
mfd mfd: ab3100: world-writable debugfs *_priv files 2011-04-14 16:53:37 -07:00
misc drivers/misc/ep93xx_pwm.c: world-writable sysfs files 2011-04-14 16:53:38 -07:00
mmc mmc: build fix: mmc_pm_notify is only available with CONFIG_PM=y 2011-05-09 15:55:32 -07:00
mtd mtd: mtdconcat: fix NAND OOB write 2011-06-23 15:24:01 -07:00
net p54usb: add zoom 4410 usbid 2011-06-23 15:24:04 -07:00
nubus
of
oprofile oprofile: fix crash when accessing freed task structs 2010-09-20 13:17:50 -07:00
parisc PARISC: led.c - fix potential stack overflow in led_proc_write() 2010-08-10 10:20:37 -07:00
parport
pci PCI: Set PCIE maxpayload for card during hotplug insertion 2011-06-23 15:24:06 -07:00
pcmcia pcmcia: avoid buffer overflow in pcmcia_setup_isa_irq 2010-08-26 16:41:53 -07:00
platform dell-laptop: Add another Dell laptop family to the DMI whitelist 2011-05-09 15:55:34 -07:00
pnp
power ds2760_battery: Fix calculation of time_to_empty_now 2011-02-17 15:37:02 -08:00
pps
ps3
rapidio
regulator regulator: Fix display of null constraints for regulators 2010-02-23 07:37:49 -08:00
rtc drivers/rtc/rtc-ds1511.c: world-writable sysfs nvram file 2011-04-14 16:53:37 -07:00
s390 dasd: correct device table 2011-05-09 15:54:50 -07:00
sbus
scsi Fix oops caused by queue refcounting failure 2011-06-23 15:24:06 -07:00
serial serial/imx: read cts state only after acking cts change irq 2011-05-09 15:54:48 -07:00
sfi
sh
sn
spi
ssb ssb: b43-pci-bridge: Add new vendor for BCM4318 2010-12-09 13:26:41 -08:00
staging staging: usbip: fix wrong endian conversion 2011-06-23 15:24:02 -07:00
tc
telephony
thermal
uio
usb USB: xhci - fix interval calculation for FS isoc endpoints 2011-06-23 15:24:07 -07:00
uwb
video backlight: MacBookAir3,1(3,2) mbp-nvidia-bl support 2011-05-09 15:55:36 -07:00
virtio virtio: set pci bus master enable bit 2011-03-07 15:17:55 -08:00
vlynq
w1 w1: w1 temp: fix negative termperature calculation 2010-05-12 14:57:00 -07:00
watchdog WATCHDOG: iTCO_wdt: TCO Watchdog patch for additional Intel Cougar Point DeviceIDs 2010-04-26 07:41:18 -07:00
xen xen: ensure that all event channels start off bound to VCPU 0 2010-12-09 13:26:42 -08:00
zorro
Kconfig
Makefile virtio: initialize earlier 2010-05-12 14:57:15 -07:00