提交 a4cc4215 编写于 作者: R Robert Baldyga 提交者: Felipe Balbi

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

Use generic mechanism to check if UDC controller supports stalling.
Signed-off-by: NRobert Baldyga <r.baldyga@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 ca1023c8
...@@ -2836,7 +2836,8 @@ int fsg_common_set_cdev(struct fsg_common *common, ...@@ -2836,7 +2836,8 @@ int fsg_common_set_cdev(struct fsg_common *common,
* halt bulk endpoints correctly. If one of them is present, * halt bulk endpoints correctly. If one of them is present,
* disable stalls. * 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; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册