MLK-22355: mfd: si476x: Use system_freezable_wq instead of system_wq
There is issue that system can't enter suspend while the si476x is working. The reason is that with the workqueue thread is still working after i2c enter suspend, then cause the cpu_suspend function failed. This patch is to use the system_freezable_wq instead of the system_wq, that the workqueue will be freeze before system enter suspend. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
This commit is contained in:
parent
49e5b31740
commit
5504d2877a
|
@ -97,7 +97,7 @@ static int si476x_core_config_pinmux(struct si476x_core *core)
|
|||
|
||||
static inline void si476x_core_schedule_polling_work(struct si476x_core *core)
|
||||
{
|
||||
schedule_delayed_work(&core->status_monitor,
|
||||
queue_delayed_work(system_freezable_wq, &core->status_monitor,
|
||||
usecs_to_jiffies(SI476X_STATUS_POLL_US));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue