qcacmn: At set DMA mask skip IPA version check
Currently while setting DMA mask based on IPA HW version DMA address bit mask is set. So when IPA is disabled at HW wrong DMA bit mask is set which leads to allocation failures. In this change skip IPA version check if IPA HW support is absent. Change-Id: I8e438ea012ca889f9d38f22b64207b2a9532a99b CRs-Fixed: 2067774
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
73c74698c9
commit
bd20096931
@@ -760,6 +760,22 @@ enum ipa_hw_type hif_get_ipa_hw_type(void)
|
||||
{
|
||||
return ipa_get_hw_type();
|
||||
}
|
||||
|
||||
/**
|
||||
* hif_get_ipa_present() - get IPA hw status
|
||||
*
|
||||
* This API return the IPA hw status.
|
||||
*
|
||||
* Return: true if IPA is present or false otherwise
|
||||
*/
|
||||
static inline
|
||||
bool hif_get_ipa_present(void)
|
||||
{
|
||||
if (ipa_uc_reg_rdyCB(NULL) != -EPERM)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
int hif_bus_resume(struct hif_opaque_softc *hif_ctx);
|
||||
/**
|
||||
|
Reference in New Issue
Block a user