Commit 69d60faafa32dc09ae57691f6d090b9710a55c4c
Committed by
Jason Liu
1 parent
d8ddda9a69
Exists in
smarc_8mm_imx_4.14.98_2.0.0_ga
and in
4 other branches
MLK-21355 staging: typec: tcpm: use freezable workqueue for event handling
While system suspend, the typec event handling required service maybe is not available(suspended), so we need freeze those event handling by using freezable workqueue, e.g while tcpm is handling PD message but system suspend started. Acked-by: Peter Chen <peter.chen@nxp.com> Signed-off-by: Li Jun <jun.li@nxp.com> (cherry picked from commit 270d4df94b7c2c773a171fe012fb8ce89196964f)
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/staging/typec/tcpm.c
... | ... | @@ -3730,7 +3730,7 @@ |
3730 | 3730 | mutex_init(&port->lock); |
3731 | 3731 | mutex_init(&port->swap_lock); |
3732 | 3732 | |
3733 | - port->wq = create_singlethread_workqueue(dev_name(dev)); | |
3733 | + port->wq = create_freezable_workqueue(dev_name(dev)); | |
3734 | 3734 | if (!port->wq) |
3735 | 3735 | return ERR_PTR(-ENOMEM); |
3736 | 3736 | INIT_DELAYED_WORK(&port->state_machine, tcpm_state_machine_work); |