[PATCH 3/6] usb: musb: Fix PM for hub disconnect

2016-11-16 Thread Bin Liu
From: Tony Lindgren With a USB hub disconnected, devctl can be 0x19 for about a second on am335x and will stay forever on at least omap3. And we get no further interrupts when devctl session bit clears. This keeps PM runtime active. Let's fix the issue by polling devctl until

[PATCH 3/6] usb: musb: Fix PM for hub disconnect

2016-11-15 Thread Tony Lindgren
With a USB hub disconnected, devctl can be 0x19 for about a second on am335x and will stay forever on at least omap3. And we get no further interrupts when devctl session bit clears. This keeps PM runtime active. Let's fix the issue by polling devctl until the session bit clears or times out. We

[PATCH 3/6] usb: musb: Fix PM for hub disconnect

2016-11-11 Thread Tony Lindgren
With a USB hub disconnected, devctl can be 0x19 for about a second on am335x and will stay forever on at least omap3. And we get no further interrupts when devctl session bit clears. This keeps PM runtime active. Let's fix the issue by polling devctl until the session bit clears or times out. We