From 313724d9520093ff72aa6a235cc718da200e8439 Mon Sep 17 00:00:00 2001 From: Akshay Pandit Date: Wed, 8 Jul 2020 11:53:06 +0530 Subject: [PATCH] ipa3: Support wdi3 over gsi on msmnile APQ target Define producer & consumer pipe configuration for wlan on APQ platform with 4_1 IPA HW. Cleanup uc load notification handler during disconnect. Change-Id: I6c394d81787d77f3c9869c55cce926573d7e27f0 Signed-off-by: Akshay Pandit --- drivers/platform/msm/ipa/ipa_clients/ipa_wdi3.c | 2 ++ drivers/platform/msm/ipa/ipa_v3/ipa_utils.c | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/drivers/platform/msm/ipa/ipa_clients/ipa_wdi3.c b/drivers/platform/msm/ipa/ipa_clients/ipa_wdi3.c index 22d75d4b579f..8fe69d3bbee5 100644 --- a/drivers/platform/msm/ipa/ipa_clients/ipa_wdi3.c +++ b/drivers/platform/msm/ipa/ipa_clients/ipa_wdi3.c @@ -143,6 +143,8 @@ int ipa_wdi_cleanup(void) struct ipa_wdi_intf_info *entry; struct ipa_wdi_intf_info *next; + ipa_uc_dereg_rdyCB(); + /* clear interface list */ list_for_each_entry_safe(entry, next, &ipa_wdi_ctx->head_intf_list, link) { diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c index 319e6c13f5d2..77b17d790e3d 100644 --- a/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c +++ b/drivers/platform/msm/ipa/ipa_v3/ipa_utils.c @@ -2005,6 +2005,12 @@ static const struct ipa_ep_configuration ipa3_ep_mapping IPA_DPS_HPS_REP_SEQ_TYPE_2PKT_PROC_PASS_NO_DEC_UCP_DMAP, QMB_MASTER_SELECT_DDR, { 9, 0, 8, 16, IPA_EE_UC } }, + [IPA_4_1_APQ][IPA_CLIENT_WLAN2_PROD] = { + true, IPA_v4_0_GROUP_UL_DL, + true, + IPA_DPS_HPS_REP_SEQ_TYPE_2PKT_PROC_PASS_NO_DEC_UCP_DMAP, + QMB_MASTER_SELECT_DDR, + { 7, 9, 8, 16, IPA_EE_AP } }, /* Only for test purpose */ [IPA_4_1_APQ][IPA_CLIENT_TEST_PROD] = { true, IPA_v4_0_GROUP_UL_DL, @@ -2061,6 +2067,12 @@ static const struct ipa_ep_configuration ipa3_ep_mapping IPA_DPS_HPS_SEQ_TYPE_INVALID, QMB_MASTER_SELECT_DDR, { 22, 1, 9, 9, IPA_EE_UC } }, + [IPA_4_1_APQ][IPA_CLIENT_WLAN2_CONS] = { + true, IPA_v4_0_GROUP_UL_DL, + false, + IPA_DPS_HPS_SEQ_TYPE_INVALID, + QMB_MASTER_SELECT_DDR, + { 17, 1, 8, 13, IPA_EE_AP } }, /* Only for test purpose */ /* MBIM aggregation test pipes should have the same QMB as USB_CONS */ [IPA_4_1_APQ][IPA_CLIENT_TEST_CONS] = {