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

Commit 8238531e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "cnss2: Reject idle restart if fails to get driver ops lock"

parents de0cab3f 4e3c4d59
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -665,7 +665,10 @@ int cnss_idle_restart(struct device *dev)
		return -ENODEV;
	}

	mutex_lock(&plat_priv->driver_ops_lock);
	if (!mutex_trylock(&plat_priv->driver_ops_lock)) {
		cnss_pr_dbg("Another driver operation is in progress, ignore idle restart\n");
		return -EBUSY;
	}

	cnss_pr_dbg("Doing idle restart\n");