]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
musb_hdrc: Fix stall handling as OTG peripheral
authorTony Lindgren <tony@atomide.com>
Sun, 14 Oct 2007 00:38:44 +0000 (17:38 -0700)
committerTony Lindgren <tony@atomide.com>
Sun, 14 Oct 2007 00:38:44 +0000 (17:38 -0700)
commit47c7785083ea67a7be90c7ace22ea639fa2e48f4
treebb019478a6c3e07bcc777d4b8f586de90a4df439
parent4ca958bea8c1d6e3ad9725a112757013313d3bb5
musb_hdrc: Fix stall handling as OTG peripheral

Prevent OTG peripheral trying to change to b_wait_acon if after
file storage CBW stall followed by SUSPEND from host. We switch
back to b_peripheral if RESET in b_wait_acon mode.

Also fix compile warning for missing default case.

And don't try to set b_wait_acon mode unless CONFIG_USB_OTG.

Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/musb_core.c