Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca3c1539 authored by Lan Tianyu's avatar Lan Tianyu Committed by Greg Kroah-Hartman
Browse files

usb: add little-endian transform for DeviceRemovable of usb3.0 hub

parent ca9c9d0c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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)))