Commit b3c565a1 authored by Hans de Goede's avatar Hans de Goede Committed by Greg Kroah-Hartman

uas: Add missing le16_to_cpu calls to asm1051 / asm1053 usb-id check

commit a79e5bc5 upstream.
Reported-by: default avatarkbuild test robot <fengguang.wu@intel.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d7d36249
...@@ -73,8 +73,8 @@ static int uas_use_uas_driver(struct usb_interface *intf, ...@@ -73,8 +73,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,
* broken on the ASM1051, use the number of streams to differentiate. * broken on the ASM1051, use the number of streams to differentiate.
* New ASM1053-s also support 32 streams, but have a different prod-id. * New ASM1053-s also support 32 streams, but have a different prod-id.
*/ */
if (udev->descriptor.idVendor == 0x174c && if (le16_to_cpu(udev->descriptor.idVendor) == 0x174c &&
udev->descriptor.idProduct == 0x55aa) { le16_to_cpu(udev->descriptor.idProduct) == 0x55aa) {
if (udev->speed < USB_SPEED_SUPER) { if (udev->speed < USB_SPEED_SUPER) {
/* No streams info, assume ASM1051 */ /* No streams info, assume ASM1051 */
flags |= US_FL_IGNORE_UAS; flags |= US_FL_IGNORE_UAS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment