cnss2: wait for device power up although idle restart is interrupted
When the waits on CNSS_DRIVER_EVENT_IDLE_RESTART is interrupted by a kill signal, the device power up is still in progress, it needs to wait for power up complete to ensure synchronization. Change-Id: I1f350cf70537257d8edbd5d31378d766f924915c CRs-Fixed: 3422562
This commit is contained in:

committed by
Madan Koyyalamudi

szülő
7793f64f52
commit
21bd3e2016
@@ -1348,7 +1348,9 @@ int cnss_idle_restart(struct device *dev)
|
||||
ret = cnss_driver_event_post(plat_priv,
|
||||
CNSS_DRIVER_EVENT_IDLE_RESTART,
|
||||
CNSS_EVENT_SYNC_UNINTERRUPTIBLE, NULL);
|
||||
if (ret)
|
||||
if (ret == -EINTR && plat_priv->device_id != QCA6174_DEVICE_ID)
|
||||
cnss_pr_err("Idle restart has been interrupted but device power up is still in progress");
|
||||
else if (ret)
|
||||
goto out;
|
||||
|
||||
if (plat_priv->device_id == QCA6174_DEVICE_ID) {
|
||||
|
Reference in New Issue
Block a user