• Sebastian Andrzej Siewior's avatar
    usb: musb: core: use ->resume instead ->resume_noirq · 3e87d9a3
    Sebastian Andrzej Siewior authored
    In commit 0ec8fd70 ("USB: musb: fix possible panic while resuming")
    musb_resume() became musb_resume_early() in order to enable the clocks
    early on resume. This piece of the resume code was removed later in
    commit 03491761 ("usb: musb: move clock handling to glue layer").
    In between the function was renamed from musb_resume_early() to
    musb_resume_noirq() by commit commit 48fea965 ("USB: Rework musb
    suspend()/resume_early()").
    
    Now I see that first musb_core is resumed followed by phy and glue
    layer and I ask myself is this really what we intend to do? This kind
    of revoked the purpose of the first commit (0ec8fd70).
    Because of this and because it looks wrong to resume (core) before the
    glue layer I push it to the ->resume callback.
    Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    3e87d9a3
musb_core.c 65.3 KB