Commit d3dc2e86 authored by Hans de Goede's avatar Hans de Goede Committed by Sasha Levin

uas: Set max_sectors_240 quirk for ASM1053 devices

[ Upstream commit 8e779c6c ]

Testing has shown that ASM1053 devices do not work properly with transfers
larger than 240 sectors, so set max_sectors to 240 on these.

Cc: stable@vger.kernel.org # 3.16
Reported-by: default avatarSteve Bangert <sbangert@frontier.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Tested-by: default avatarSteve Bangert <sbangert@frontier.com>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent f6283d7d
......@@ -81,6 +81,9 @@ static int uas_use_uas_driver(struct usb_interface *intf,
flags |= US_FL_IGNORE_UAS;
} else if (usb_ss_max_streams(&eps[1]->ss_ep_comp) == 32) {
flags |= US_FL_IGNORE_UAS;
} else {
/* ASM1053, these have issues with large transfers */
flags |= US_FL_MAX_SECTORS_240;
}
}
......
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