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

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

Merge "wil6210: Allow run-time PM in case platform ops defined"

parents 0482853e 37e19936
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -93,7 +93,11 @@ int wil_can_suspend(struct wil6210_priv *wil, bool is_runtime)
	if (wmi_only || debug_fw) {
		wil_dbg_pm(wil, "Deny any suspend - %s mode\n",
			   wmi_only ? "wmi_only" : "debug_fw");
		rc = -EPERM;
		rc = -EBUSY;
		goto out;
	}
	if (is_runtime && !wil->platform_ops.suspend) {
		rc = -EBUSY;
		goto out;
	}