]> git.baikalelectronics.ru Git - kernel.git/commit
usb: Set device removable state based on ACPI USB data
authorMatthew Garrett <mjg@redhat.com>
Fri, 11 May 2012 08:08:28 +0000 (16:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 00:07:02 +0000 (17:07 -0700)
commit7c44955abf5eb1022ff892ac3df406853f2513f8
treefc42b3ac4b41ed1cebfd50e494c87a986a021e39
parent77c3dffee10a4c7cea643cf3957af8de7836aec1
usb: Set device removable state based on ACPI USB data

ACPI offers two methods that allow us to infer whether or not a USB port
is removable. The _PLD method gives us information on whether the port is
"user visible" or not. If that's not present then we can fall back to the
_UPC method which tells us whether or not a port is connectable.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/usb-acpi.c