From: Hans de Goede Date: Tue, 21 Apr 2015 09:20:32 +0000 (+0200) Subject: uas: Set max_sectors_240 quirk for ASM1053 devices X-Git-Tag: v3.18.14~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3dc2e86f7f760b15d0cc3207e99c2d8a63e4740;p=profile%2Fwearable%2Fplatform%2Fkernel%2Flinux-3.18-exynos7270.git uas: Set max_sectors_240 quirk for ASM1053 devices [ Upstream commit 8e779c6c4a398763c21371fe40f649206041dc1e ] 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: Steve Bangert Signed-off-by: Hans de Goede Tested-by: Steve Bangert Acked-by: Alan Stern Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- diff --git a/drivers/usb/storage/uas-detect.h b/drivers/usb/storage/uas-detect.h index 856cc1f94a3..a451903a685 100644 --- a/drivers/usb/storage/uas-detect.h +++ b/drivers/usb/storage/uas-detect.h @@ -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; } }