Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1dd672bf authored by Yue Ma's avatar Yue Ma
Browse files

cnss2: Use uninterruptible wait for idle shutdown/restart work



Idle shutdown/restart work can be terminated by a signal from freezing
user space which may cause unexpected behavior. Use uninterruptible
wait for idle shutdown/restart work to avoid such case.

Change-Id: Ic96a5ecc711d5d70bf81edf12b46b0d560bf7ad3
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 6d464a5c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -654,7 +654,7 @@ int cnss_idle_restart(struct device *dev)

	ret = cnss_driver_event_post(plat_priv,
				     CNSS_DRIVER_EVENT_IDLE_RESTART,
				     CNSS_EVENT_SYNC, NULL);
				     CNSS_EVENT_SYNC_UNINTERRUPTIBLE, NULL);
	if (ret)
		goto out;

@@ -708,7 +708,7 @@ int cnss_idle_shutdown(struct device *dev)
skip_wait:
	return cnss_driver_event_post(plat_priv,
				      CNSS_DRIVER_EVENT_IDLE_SHUTDOWN,
				      CNSS_EVENT_SYNC, NULL);
				      CNSS_EVENT_SYNC_UNINTERRUPTIBLE, NULL);
}
EXPORT_SYMBOL(cnss_idle_shutdown);