mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: enable ipa hw dynamic detection capabiliry
Fix IPA V2 compile problem fix. MODEM included platform and non-MODEM platform should use the same binary. Then WLAN cannot disable IPA data path through INI nor compile time. WLAN host driver should dynamically detect IPA HW status and should enable or disable IPA data path based on IPA HW status. Change-Id: I2d34aaa9f1616e621ff9585c69c4618463e05c65 CRs-fixed: 1078825
This commit is contained in:
parent
11545d6679
commit
63d7361152
1 changed files with 4 additions and 1 deletions
|
|
@ -533,9 +533,12 @@ do { \
|
|||
pipe_in.u.ul.rdy_comp_ring_wp_va = \
|
||||
ipa_ctxt->ipa_resource.rx2_proc_done_idx_vaddr; \
|
||||
} while (0)
|
||||
|
||||
#define HDD_IPA_CHECK_HW() ipa_uc_reg_rdyCB(NULL)
|
||||
#else
|
||||
/* Do nothing */
|
||||
#define HDD_IPA_WDI2_SET(pipe_in, ipa_ctxt)
|
||||
#define HDD_IPA_CHECK_HW() 0
|
||||
#endif /* IPA3 */
|
||||
|
||||
static struct hdd_ipa_adapter_2_client {
|
||||
|
|
@ -2815,7 +2818,7 @@ static void hdd_ipa_send_pkt_to_tl(
|
|||
bool hdd_ipa_is_present(hdd_context_t *hdd_ctx)
|
||||
{
|
||||
/* Check if ipa hw is enabled */
|
||||
if (ipa_uc_reg_rdyCB(NULL) != -EPERM)
|
||||
if (HDD_IPA_CHECK_HW() != -EPERM)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue