• Bin Liu's avatar
    usb: musb: fix device hotplug behind hub · 9298b4aa
    Bin Liu authored
    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: default avatarBin Liu <b-liu@ti.com>
    Tested-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    9298b4aa
musb_core.c 69.5 KB