提交 683da59d 编写于 作者: T Timo Juhani Lindfors 提交者: Felipe Balbi

usb: gadget: zero: fix bug in loopback autoresume handling

ab943a2e (USB: gadget: gadget zero uses new suspend/resume hooks)
introduced a copy-paste error where f_loopback.c writes to a variable
declared in f_sourcesink.c. This prevents one from creating gadgets
that only have a loopback function.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: NTimo Juhani Lindfors <timo.lindfors@iki.fi>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 b30b3c60
...@@ -418,7 +418,7 @@ int __init loopback_add(struct usb_composite_dev *cdev, bool autoresume) ...@@ -418,7 +418,7 @@ int __init loopback_add(struct usb_composite_dev *cdev, bool autoresume)
/* support autoresume for remote wakeup testing */ /* support autoresume for remote wakeup testing */
if (autoresume) if (autoresume)
sourcesink_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP; loopback_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
/* support OTG systems */ /* support OTG systems */
if (gadget_is_otg(cdev->gadget)) { if (gadget_is_otg(cdev->gadget)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册