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

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

Merge "msm: ipa3: IPA HW version check for FnR stats"

parents 469a67de 68c8a1f7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1052,6 +1052,12 @@ int ipa_get_flt_rt_stats(struct ipa_ioc_flt_rt_query *query)
		return 0;
	}

	if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_5) {
		IPAERR("FnR stats not supported in %d hw_type\n",
			ipa3_ctx->ipa_hw_type);
		return 0;
	}

	if (query->start_id == 0 || query->end_id == 0) {
		IPAERR("Invalid start_id/end_id, must be not 0\n");
		IPAERR("start_id %d, end_id %d\n",