From d2ac86c7948548621357f9273590f63ccdae8cab Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Mon, 14 Mar 2016 21:11:41 -0700 Subject: [PATCH] qcacmn: Run hif_save_htc_htt_config_endpoint for snoc hif_save_htc_htt_config_endpoint saves an endpoint id in the hif layer. hif uses this id to avoid double frees. There is no reason this should be PCI specific. Change-Id: I487634e67fddc9d821db9c48a01b28979d988111 CRs-Fixed: 986480 --- htc/htc_services.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/htc/htc_services.c b/htc/htc_services.c index a6cdeaa60d37..08b403656f03 100644 --- a/htc/htc_services.c +++ b/htc/htc_services.c @@ -36,24 +36,6 @@ unsigned int htc_credit_flow = 1; #define DEBUG_CREDIT 0 #endif -/** - * htc_update_htc_htt_config - API to update HIF with the HTT endpoint info - * @target: HTC handle - * @endpoint: Endpoint on which HTT messages flow - * - * Return: void - */ -#ifdef HIF_PCI -void htc_update_htc_htt_config(HTC_TARGET *target, int endpoint) -{ - hif_save_htc_htt_config_endpoint(target->hif_dev, endpoint); -} -#else -void htc_update_htc_htt_config(HTC_TARGET *target, int endpoint) -{ -} -#endif - A_STATUS htc_connect_service(HTC_HANDLE HTCHandle, HTC_SERVICE_CONNECT_REQ *pConnectReq, HTC_SERVICE_CONNECT_RESP *pConnectResp) @@ -354,7 +336,8 @@ A_STATUS htc_connect_service(HTC_HANDLE HTCHandle, } while (false); if (HTT_SERVICE_GROUP == (pConnectReq->service_id >> 8)) - htc_update_htc_htt_config(target, assignedEndpoint); + hif_save_htc_htt_config_endpoint(target->hif_dev, + assignedEndpoint); AR_DEBUG_PRINTF(ATH_DEBUG_TRC, ("-htc_connect_service\n"));