]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: fix otg default state
authorBin Liu <b-liu@ti.com>
Tue, 17 Sep 2013 17:43:13 +0000 (12:43 -0500)
committerFelipe Balbi <balbi@ti.com>
Tue, 17 Sep 2013 17:51:32 +0000 (12:51 -0500)
commit32f1d7897164bd51ba82d399973072a39cc40b63
tree7b09aa08a9d619434c53e1b20b86fe32e2540587
parentd9dbdf2ff5856d133dcea1d24e07d676f857fdf6
usb: musb: fix otg default state

Right after the musb_hdrc driver is loaded, the otg default state
is a_idle, and Mode=Host, which are set by musb_host_setup().

This causes the following kernel message during musb gadget
enumeration.

CAUTION: musb: Babble Interrupt Occurred

This patch sets the otg default state to b_idle, and its Mode to
Peripheral.

It has been validated on TI AM335x GP EVM USB0 port with g_zero.

Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c