msm: ipahal: modify parameter from eq_bitfield[i] to i

From IPAv4.5 versions IPA_TOS_EQ is considered as not supported
and it made to 0XFF, instead IPA_IS_PURE_ACK is given support.
So, when validating the bitfield equations of them, passing
eq_bitfield[i] will throw shift overflow warning as it takes 0xFF.
So, added change to ensure there are no overflow warnings.

Change-Id: I84384723433706784a4ef21b88f33b036edb0a5d
Signed-off-by: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
This commit is contained in:
Jagadeesh Ponduru
2022-06-10 23:54:26 +05:30
committed by Gerrit - the friendly Code Review server
parent 257165583a
commit af148419bf

View File

@@ -4711,12 +4711,12 @@ int ipahal_fltrt_init(enum ipa_hw_type ipa_hw_type)
if (!IPA_IS_RULE_EQ_VALID(i))
continue;
if (eq_bits & IPA_GET_RULE_EQ_BIT_PTRN(eq_bitfield[i])) {
if (eq_bits & IPA_GET_RULE_EQ_BIT_PTRN(i)) {
IPAHAL_ERR("more than eq with same bit. eq=%d\n", i);
WARN_ON(1);
return -EFAULT;
}
eq_bits |= IPA_GET_RULE_EQ_BIT_PTRN(eq_bitfield[i]);
eq_bits |= IPA_GET_RULE_EQ_BIT_PTRN(i);
}
mem = &ipahal_ctx->empty_fltrt_tbl;