MLK-22355: mfd: si476x: Use system_freezable_wq instead of system_wq
authorShengjiu Wang <shengjiu.wang@nxp.com>
Sat, 3 Aug 2019 07:54:45 +0000 (15:54 +0800)
committerShengjiu Wang <shengjiu.wang@nxp.com>
Mon, 5 Aug 2019 10:39:00 +0000 (18:39 +0800)
commit33f93a21cfbf2af6299631035829d2539e67ba76
tree2e541395ee7371f62cfeed5cee42a7f84957da87
parente02cefb86e7572a82894498b7303ca06d932e5e8
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>
drivers/mfd/si476x-i2c.c