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

Commit d1a9de3a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: cnss: Add runtime idle callback support"

parents fedc56ae 15e294e7
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -1600,6 +1600,15 @@ static int cnss_wlan_runtime_resume(struct device *dev)
	return ret;
}

static int cnss_wlan_runtime_idle(struct device *dev)
{
	pr_debug("cnss: runtime idle\n");

	pm_request_autosuspend(dev);

	return -EBUSY;
}

static DECLARE_RWSEM(cnss_pm_sem);

static int cnss_pm_notify(struct notifier_block *b,
@@ -1634,7 +1643,7 @@ MODULE_DEVICE_TABLE(pci, cnss_wlan_pci_id_table);
static const struct dev_pm_ops cnss_wlan_pm_ops = {
	SET_SYSTEM_SLEEP_PM_OPS(cnss_wlan_pci_suspend, cnss_wlan_pci_resume)
	SET_RUNTIME_PM_OPS(cnss_wlan_runtime_suspend, cnss_wlan_runtime_resume,
			NULL)
			cnss_wlan_runtime_idle)
};
#endif