mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
ca1023c81d
commit
a4cc42157f
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue