msm: ipa3: Enable dynamic switch between WDI2 and WDI3

Enable WDI2 and dynamic switching between WDI3
and WDI2 based on wlan input.

Change-Id: Iaa23c78d8852fe12d9f9bc1133ee7c53f6755779
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
This commit is contained in:
Pooja Kumari 2020-10-04 17:53:35 +05:30 • committed by Gerrit - the friendly Code Review server
commit 759bd95c83
2 changed files with 8 additions and 0 deletions

View file

@ -166,6 +166,8 @@ struct ipa_wdi3_data {
int (*ipa_wdi_bw_monitor)(struct ipa_wdi_bw_info *info);
int (*ipa_wdi_sw_stats)(struct ipa_wdi_tx_info *info);
int (*ipa_get_wdi_version)(void);
};
struct ipa_gsb_data {

View file

@ -371,6 +371,7 @@ int ipa_wdi_bw_monitor(struct ipa_wdi_bw_info *info);
*
*/
int ipa_wdi_sw_stats(struct ipa_wdi_tx_info *info);
int ipa_get_wdi_version(void);
#else /* IS_ENABLED(CONFIG_IPA3) */
@ -380,6 +381,11 @@ static inline int ipa_wdi_init(struct ipa_wdi_init_in_params *in,
return -EPERM;
}
static inline int ipa_get_wdi_version(void)
{
return -EPERM;
}
static inline int ipa_wdi_cleanup(void)
{
return -EPERM;