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

Commit 1e2e505e authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by Gerrit - the friendly Code Review server
Browse files

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



Fixed a condition that flow was enabled before powersave work is
marked as inactive. This could lead to UL packets not trigger a
new powersave work and cause data stall.

CRs-fixed: 2324912
Change-Id: Iba2ee6ce2f8a51ac9293959f32a61adc34d8e9fe
Acked-by: default avatarWeiyi Chen <weiyic@qti.qualcomm.com>
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 49f7d351
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);