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

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

Merge "soc: qcom: dfc: Enable flow after ps work is marked as inactive"

parents 201fda2a 1e2e505e
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -734,10 +734,8 @@ int qmi_rmnet_set_powersave_mode(void *port, uint8_t enable)
		return rc;
	}

	if (enable) {
	if (enable)
		dfc_qmi_wq_flush(qmi);
		rmnet_enable_all_flows(port);
	}

	return 0;
}
@@ -803,6 +801,11 @@ static void qmi_rmnet_check_stats(struct work_struct *work)
		qmi->ps_enabled = 1;
		clear_bit(PS_WORK_ACTIVE_BIT, &qmi->ps_work_active);

		/* Enable flow after clear the bit so a new
		 * work can be triggered.
		 */
		rmnet_enable_all_flows(real_work->port);

		if (rmnet_get_powersave_notif(real_work->port))
			qmi_rmnet_ps_on_notify(real_work->port);