diff options
author | Lan Tianyu <tianyu.lan@intel.com> | 2012-09-10 16:22:36 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-10 18:27:37 -0400 |
commit | ca3c1539adfe9c1b86f16faf314b3bf54c3b5389 (patch) | |
tree | 0af08631247c7ed1910fddf3ed63f9e32f61a48f /drivers/usb/core | |
parent | ca9c9d0c922e4f1dac80699ebab1269d6dbaff85 (diff) |
usb: add little-endian transform for DeviceRemovable of usb3.0 hub
Signed-off-by: Lan Tianyu <tianyu.lan@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/hub.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 3def91eecaad..aa45e43e0ca9 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
@@ -2190,7 +2190,8 @@ static void set_usb_port_removable(struct usb_device *udev) | |||
2190 | return; | 2190 | return; |
2191 | 2191 | ||
2192 | if (hub_is_superspeed(hdev)) { | 2192 | if (hub_is_superspeed(hdev)) { |
2193 | if (hub->descriptor->u.ss.DeviceRemovable & (1 << port)) | 2193 | if (le16_to_cpu(hub->descriptor->u.ss.DeviceRemovable) |
2194 | & (1 << port)) | ||
2194 | removable = false; | 2195 | removable = false; |
2195 | } else { | 2196 | } else { |
2196 | if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8))) | 2197 | if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8))) |