PNPACPI: cope with invalid device IDs
commitdb2d10eec9355faf29135e5cfccfb41b1e7e0b8f
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 18 Sep 2010 17:11:09 +0000 (18 10:11 -0700)
committerAndi Kleen <ak@linux.intel.com>
Tue, 14 Dec 2010 22:40:14 +0000 (14 23:40 +0100)
tree595a8c8a429d611e54dcd5db91fe616b9d2b555d
parent594574f0ba7ae9985662f9b0b8a9754c9da552c3
PNPACPI: cope with invalid device IDs

commit 420a0f66378c84b00b0e603e4d38210102dbe367 upstream.

If primary ID (HID) is invalid try locating first valid ID on compatible
ID list before giving up.

This helps, for example, to recognize i8042 AUX port on Sony Vaio VPCZ1
which uses SNYSYN0003 as HID. Without the patch users are forced to
boot with i8042.nopnp to make use of their touchpads.

Tested-by: Jan-Hendrik Zab <jan@jhz.name>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
drivers/pnp/pnpacpi/core.c