]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit54d3f8c63d6940966217b807972778fb17c3fa82
treefc42b3ac4b41ed1cebfd50e494c87a986a021e39
parentda0af6e78ef311d97754aa03e10eade82cc99e16
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