From: Lan Tianyu Date: Mon, 10 Sep 2012 20:22:36 +0000 (+0800) Subject: usb: add little-endian transform for DeviceRemovable of usb3.0 hub X-Git-Tag: v3.7-rc1~171^2~143 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca3c1539adfe9c1b86f16faf314b3bf54c3b5389;p=profile%2Fivi%2Fkernel-x86-ivi.git usb: add little-endian transform for DeviceRemovable of usb3.0 hub Signed-off-by: Lan Tianyu Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 3def91e..aa45e43 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) return; if (hub_is_superspeed(hdev)) { - if (hub->descriptor->u.ss.DeviceRemovable & (1 << port)) + if (le16_to_cpu(hub->descriptor->u.ss.DeviceRemovable) + & (1 << port)) removable = false; } else { if (hub->descriptor->u.hs.DeviceRemovable[port / 8] & (1 << (port % 8)))