usb: musb: fix device hotplug behind hub
authorBin Liu <b-liu@ti.com>
Tue, 3 Feb 2015 17:02:10 +0000 (11:02 -0600)
committerFelipe Balbi <balbi@ti.com>
Wed, 4 Feb 2015 17:16:47 +0000 (11:16 -0600)
commit9298b4aad37e8c6962edcdbd0b62620adb207d03
tree485a90278ff48819369d9cd553854a0cd1d69926
parent251a17f5aff990ab117590df2a13ef032464c0d3
usb: musb: fix device hotplug behind hub

The commit 889ad3b "usb: musb: try a race-free wakeup" breaks device
hotplug enumeraitonn when the device is connected behind a hub while usb
autosuspend is enabled.

Adding finish_resume_work into runtime resume callback fixes the issue.

Also resume root hub is required to resume the bus from runtime suspend,
so move musb_host_resume_root_hub() back to its original location, where
handles RESUME interrupt.

Signed-off-by: Bin Liu <b-liu@ti.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_core.c
drivers/usb/musb/musb_virthub.c