]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
USB: musb: gadget: set otg tranceiver to idle when registering gadget
authorArnaud Mandy <ext-arnaud.2.mandy@nokia.com>
Tue, 15 Dec 2009 11:29:58 +0000 (13:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:34:17 +0000 (11:34 -0800)
commitd4c433fe6f04195a1a0d2146d9f11ad45eecef86
tree288a297d666b435dc960af7ff320c78115d4058c
parenta2396a32b848a9864f933ced860192c72c769aca
USB: musb: gadget: set otg tranceiver to idle when registering gadget

When registering gadget driver, the state of the transceiver
must be set from undefined (no gadget) to b_idle.

Module unload sets the transceiver state to undefined state.
After the first load/unload pair, the reset irq will be lost.

Signed-off-by: Arnaud Mandy <ext-arnaud.2.mandy@nokia.com>
Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com>
Cc: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Anand Gadiyar <gadiyar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_gadget.c