1
0

msm: ipa: avoid accessing ipa3_ctx from clients

Use ipa_get_hw_type instead of directly accessing ipa3_ctx
from ipa_clients

Change-Id: I5098df3c048b7105c9174df33b37d8c42d2c6a45
Signed-off-by: Michael Adisumarta <madisuma@codeaurora.org>
Este cometimento está contido em:
Michael Adisumarta
2020-12-17 20:05:02 -08:00
ascendente c3e6e94e4b
cometimento 080938d57f

Ver ficheiro

@@ -1237,7 +1237,7 @@ static enum ipa_client_type ipa3_mhi_get_client_by_chid(u32 chid)
break;
case IPA_MHI_CLIENT_IP_HW_1_OUT:
/* IPA4.5 non-auto, use mhi ch104 for qmap flow control */
if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
if (ipa_get_hw_type() == IPA_HW_v4_5)
client = IPA_CLIENT_MHI_LOW_LAT_PROD;
/* No auto use case in this branch */
else
@@ -1245,7 +1245,7 @@ static enum ipa_client_type ipa3_mhi_get_client_by_chid(u32 chid)
break;
case IPA_MHI_CLIENT_IP_HW_1_IN:
/* IPA4.5 non-auto, use mhi ch105 for qmap flow control */
if (ipa3_ctx->ipa_hw_type == IPA_HW_v4_5)
if (ipa_get_hw_type() == IPA_HW_v4_5)
client = IPA_CLIENT_MHI_LOW_LAT_CONS;
/* No auto use case in this branch */
else