Browse Source

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 <[email protected]>
Michael Adisumarta 4 years ago
parent
commit
080938d57f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c

+ 2 - 2
drivers/platform/msm/ipa/ipa_clients/ipa_mhi_client.c

@@ -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