Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a4cc4215 authored by Robert Baldyga's avatar Robert Baldyga Committed by Felipe Balbi
Browse files

usb: gadget: f_mass_storage: check quirk instead of UDC name



Use generic mechanism to check if UDC controller supports stalling.

Signed-off-by: default avatarRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent ca1023c8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
}