Просмотр исходного кода

msm: ipa: disable synx_init API calls and a minor fix

Disabling synx_init API calls in XR till they get enabled
by default and correct a minor return value check.

Change-Id: Ied80decbb973aa63f98c098e5a46805566a6850c
Signed-off-by: Jagadeesh Ponduru <[email protected]>
Jagadeesh Ponduru 1 год назад
Родитель
Сommit
94b277d162

+ 1 - 1
drivers/platform/msm/ipa/ipa_clients/ipa_wdi3.c

@@ -884,7 +884,7 @@ int ipa_wdi_enable_pipes_per_inst(ipa_wdi_hdl_t hdl)
 
 			ret = queue_delayed_work(wlan_flt_rsrv_wq, &wlan_flt_rsrv_handle,
 				msecs_to_jiffies(QUEUE_DELAY_TIME));
-			if (ret) {
+			if (!ret) {
 				IPA_WDI_ERR("failed to queue delayed wq\n");
 				return 0;
 			}

+ 5 - 9
drivers/platform/msm/ipa/ipa_v3/ipa.c

@@ -8294,15 +8294,11 @@ static int ipa3_post_init(const struct ipa3_plat_drv_res *resource_p,
 			goto fail_teth_bridge_driver_init;
 		}
 
-		result = ipa3_create_hfi_send_uc();
-		if (result) {
-			IPAERR("HFI Creation failed %d\n", result);
-			ipa3_free_uc_temp_buffs(NO_OF_BUFFS);
-			ipa3_free_uc_pipes_er_tr();
-			result = -ENODEV;
-			IPA_ACTIVE_CLIENTS_DEC_SIMPLE();
-			goto fail_teth_bridge_driver_init;
-		}
+		/*
+		 * Will enable synx_init API calls back when
+		 * hw-fence is enabled by default in builds.
+		 */
+
 		IPA_ACTIVE_CLIENTS_DEC_SIMPLE();
 	}
 #endif