To avoid deadlock after system resume if the role changes notification
is sent while system resume, we need to drain the work handling until
thawed.
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
dwc->desired_dr_role = mode;
spin_unlock_irqrestore(&dwc->lock, flags);
- queue_work(system_power_efficient_wq, &dwc->drd_work);
+ queue_work(system_freezable_wq, &dwc->drd_work);
}
static int dwc3_set_suspend_clk(struct dwc3 *dwc)