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
This commit is contained in:
Houston Hoffman
2016-03-14 21:11:41 -07:00
committed by Vishwajith Upendra
parent bc69349d0d
commit d2ac86c794

View File

@@ -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"));