usb: gadget: f_mass_storage: check quirk instead of UDC name
authorRobert Baldyga <r.baldyga@samsung.com>
Tue, 28 Jul 2015 05:20:01 +0000 (07:20 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 30 Jul 2015 16:43:36 +0000 (11:43 -0500)
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>
drivers/usb/gadget/function/f_mass_storage.c

index 9e88e2b18d95e7919c85cada4c5fa831a3ed9741..a2291946ca7e36f6957b5c6070ff031f59c09f46 100644 (file)
@@ -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;
 }