This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

USB module not working on device wakeup.



Hi,

We are using OMAP3621 with twl4030 on our device.

Once device goes to suspend with enable_off_mode set to one and wake back sometimes usb fail to connect.

We see that TWL4030 is getting the interrupt while connecting the cable and it is indicating OMAP through some interrupt line.

But OMAP is not responding back with D+ line, hence USB device never gets enumerated.

Need some help to fix this issue.

Attached config file that we are using.

1732.config.txt

  • It looks like usb_host_pwrdm is in OFF mode.

    I get a different case with enable_off_mode set to zero and while usb cable is unplugged no musb disconnect interrupt is raised.

    twl4030 does detect the disconnect but omap is not responding.

    At this point debug/pm_debug/time  shows.

    usbhost_pwrdm (RET),OFF:51132975463867,RET:3854405914306,INA:0,ON:2425201416
    sgx_pwrdm (ON),OFF:53926455841170,RET:0,INA:0,ON:1063350768937
    per_pwrdm (ON),OFF:51087003387444,RET:2712068573216,INA:0,ON:1190734649447
    dss_pwrdm (ON),OFF:51086895507806,RET:2827774353163,INA:0,ON:1075136779656
    cam_pwrdm (ON),OFF:51095614105224,RET:2830821228129,INA:0,ON:1063371337789
    core_pwrdm (ON),OFF:51034860198974,RET:764102844218,INA:0,ON:3190843627950
    neon_pwrdm (ON),OFF:51091193054203,RET:2730705627597,INA:104656280495,ON:1063251739365
    mpu_pwrdm (ON),OFF:51091193176275,RET:2730806213566,INA:104652618388,ON:1063154723948
    iva2_pwrdm (OFF),OFF:54764160980223,RET:196833557164,INA:2059356690,ON:26752838100

    What is the way to bring back usb_host to ON mode through software?