summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/function/f_mass_storage.c
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-07-28 07:20:01 +0200
committerFelipe Balbi <balbi@ti.com>2015-07-30 11:43:36 -0500
commita4cc42157f3f8c3dd5562b91c7430376912c6fb8 (patch)
treeb7d39aaa87306421678b67e2ac881e6a66800e34 /drivers/usb/gadget/function/f_mass_storage.c
parentca1023c81dd10f76a5d0a8be2fdbe724fe7a126a (diff)
downloadlinux-stable-a4cc42157f3f8c3dd5562b91c7430376912c6fb8.tar.gz
linux-stable-a4cc42157f3f8c3dd5562b91c7430376912c6fb8.tar.bz2
linux-stable-a4cc42157f3f8c3dd5562b91c7430376912c6fb8.zip
usb: gadget: f_mass_storage: check quirk instead of UDC name
Use generic mechanism to check if UDC controller supports stalling. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/function/f_mass_storage.c')
-rw-r--r--drivers/usb/gadget/function/f_mass_storage.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_mass_storage.c b/drivers/usb/gadget/function/f_mass_storage.c
index 9e88e2b18d95..a2291946ca7e 100644
--- a/drivers/usb/gadget/function/f_mass_storage.c
+++ b/drivers/usb/gadget/function/f_mass_storage.c
@@ -2836,7 +2836,8 @@ int fsg_common_set_cdev(struct fsg_common *common,
* halt bulk endpoints correctly. If one of them is present,
* disable stalls.
*/
- common->can_stall = can_stall && !(gadget_is_at91(common->gadget));
+ common->can_stall = can_stall &&
+ gadget_is_stall_supported(common->gadget);
return 0;
}