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

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

Merge "cnss2: Fix runtime PM related issues"

parents f955ff1e 7fa56997
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -893,12 +893,13 @@ static void cnss_pci_time_sync_work_hdlr(struct work_struct *work)
		return;

	if (cnss_pci_pm_runtime_get_sync(pci_priv) < 0)
		return;
		goto runtime_pm_put;

	cnss_pci_update_timestamp(pci_priv);
	schedule_delayed_work(&pci_priv->time_sync_work,
			      msecs_to_jiffies(time_sync_period_ms));

runtime_pm_put:
	cnss_pci_pm_runtime_mark_last_busy(pci_priv);
	cnss_pci_pm_runtime_put_autosuspend(pci_priv);
}
@@ -2446,6 +2447,7 @@ int cnss_pci_force_fw_assert_hdlr(struct cnss_pci_data *pci_priv)
	if (!plat_priv)
		return -ENODEV;

	cnss_pci_pm_runtime_resume(pci_priv);
	cnss_pci_dump_shadow_reg(pci_priv);

	ret = cnss_pci_set_mhi_state(pci_priv, CNSS_MHI_TRIGGER_RDDM);