We develop one products based on TI AM-3352. Now we want to update the Linux to TI Linux SDK v2.00.00.00 and encounter problems. We set usb0 working with otg mode and CONFIG_USB_MUSB_DUAL_ROLE is set .In host mode it is working fine.But in slave mode ,It must plug the usb cable before booting.Otherwise the device can not be detected by the PC.And the slave mode does not support hot plug. When unplug the usb cable for more than about 3 seconds.then plug the usb cable again the device can not be detected by the PC.the error message is as follows:
[ 76.553012] g_mass_storage gadget: reset config
[ 76.553100] g_mass_storage gadget: bulk_out_complete --> -104, 0/31
[ 76.553120] g_mass_storage gadget: reset interface
[ 78.701477] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #1, port1 00000100
[ 78.853892] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #2, port1 00000100
[ 79.006318] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #3, port1 00000100
[ 79.158740] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 00080108
[ 82.542171] musb_h_ep0_irq 1164: no URB for end 0
[ 82.547151] musb_h_ep0_irq 1164: no URB for end 0
[ 82.898156] musb_h_ep0_irq 1164: no URB for end 0
[ 82.903126] musb_h_ep0_irq 1164: no URB for end 0
[ 83.254268] musb_h_ep0_irq 1164: no URB for end 0
[ 83.259235] musb_h_ep0_irq 1164: no URB for end 0
[ 83.610318] musb_h_ep0_irq 1164: no URB for end 0
[ 83.615298] musb_h_ep0_irq 1164: no URB for end 0
my dts file as follows:
usb0_pins_default: pinmux_usb0_pins {
pinctrl-single,pins = <
0x21c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */
0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usb1_drvvbus.usb1_drvvbus */
>;
};
&usb {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&usb0_pins_default>;
control@44e10620 {
status = "okay";
};
usb0-phy@47401300 {
status = "okay";
};
usb@47401000 {
dr_mode = "otg";
status = "okay";
};
dma-controller@47402000 {
status = "okay";
};
usb1-phy@47401b00 {
status = "okay";
};
usb@47401800 {
dr_mode = "host";
status = "okay";
};
};
Could you help on this.
Looking forward TI reply, thanks advance.


