Skip to content

Commit

Permalink
Revert "usb: musb: gadget: fix otg active status flag"
Browse files Browse the repository at this point in the history
This reverts commit 9b0a1de.

Aaro writes:
	With v3.12-rc4 I can no longer connect to N800 (OMAP2) with USB
	(peripheral, g_ether).

	According to git bisect this is caused by:

	9b0a1de is the first bad commit

So revert this patch, as Felipe says:
	It's unfortunate that tusb6010 is so messed up

Reported-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Acked-by: Felipe Balbi <balbi@ti.com>
Cc: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Greg Kroah-Hartman committed Oct 14, 2013
1 parent 4294bca commit 43e699c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/musb/musb_gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -1853,6 +1853,7 @@ static int musb_gadget_start(struct usb_gadget *g,
musb->gadget_driver = driver;

spin_lock_irqsave(&musb->lock, flags);
musb->is_active = 1;

otg_set_peripheral(otg, &musb->g);
musb->xceiv->state = OTG_STATE_B_IDLE;
Expand Down

0 comments on commit 43e699c

Please sign in to comment.