Skip to content

Commit

Permalink
usb: gadget: f_mass_storage: check quirk instead of UDC name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Robert Baldyga authored and Felipe Balbi committed Jul 30, 2015
1 parent ca1023c commit a4cc421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/usb/gadget/function/f_mass_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a4cc421

Please sign in to comment.