Skip to content

Commit

Permalink
usb: gadget: zero: fix bug in loopback autoresume handling
Browse files Browse the repository at this point in the history
ab943a2 (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: Timo Juhani Lindfors <timo.lindfors@iki.fi>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Timo Juhani Lindfors authored and Felipe Balbi committed Jan 30, 2012
1 parent b30b3c6 commit 683da59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/f_loopback.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ int __init loopback_add(struct usb_composite_dev *cdev, bool autoresume)

/* support autoresume for remote wakeup testing */
if (autoresume)
sourcesink_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
loopback_driver.bmAttributes |= USB_CONFIG_ATT_WAKEUP;

/* support OTG systems */
if (gadget_is_otg(cdev->gadget)) {
Expand Down

0 comments on commit 683da59

Please sign in to comment.