qcacld-3.0: Modify is fw activated pipes api for lithium dp
In case of lithium dp there is no FW interaction in RX packet processing and is HW REO ring based. So modify the ipa component is fw activated api to return true if the ipa system pipes are enabled. Change-Id: I8cde4b0f696b75097e6b50f8b0c71c2b6fff6d6d CRs-Fixed: 2374083
This commit is contained in:
parent
a891c69dbc
commit
7887022782
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@ -1335,6 +1335,11 @@ static void wlan_ipa_uc_handle_last_discon(struct wlan_ipa_priv *ipa_ctx)
|
||||
|
||||
ipa_debug("exit: IPA WDI Pipes deactivated");
|
||||
}
|
||||
|
||||
bool wlan_ipa_is_fw_wdi_activated(struct wlan_ipa_priv *ipa_ctx)
|
||||
{
|
||||
return !ipa_ctx->ipa_pipes_down;
|
||||
}
|
||||
#else
|
||||
|
||||
/**
|
||||
@ -1402,6 +1407,11 @@ static void wlan_ipa_uc_handle_last_discon(struct wlan_ipa_priv *ipa_ctx)
|
||||
|
||||
ipa_debug("exit: IPA WDI Pipes deactivated");
|
||||
}
|
||||
|
||||
bool wlan_ipa_is_fw_wdi_activated(struct wlan_ipa_priv *ipa_ctx)
|
||||
{
|
||||
return (WLAN_IPA_UC_NUM_WDI_PIPE == ipa_ctx->activated_fw_pipe);
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
@ -2957,11 +2967,6 @@ QDF_STATUS wlan_ipa_uc_ol_deinit(struct wlan_ipa_priv *ipa_ctx)
|
||||
return status;
|
||||
}
|
||||
|
||||
bool wlan_ipa_is_fw_wdi_activated(struct wlan_ipa_priv *ipa_ctx)
|
||||
{
|
||||
return (WLAN_IPA_UC_NUM_WDI_PIPE == ipa_ctx->activated_fw_pipe);
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_ipa_uc_send_evt() - send event to ipa
|
||||
* @net_dev: Interface net device
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2013-2018 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2013-2019 The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
@ -455,7 +455,7 @@ void wlan_ipa_uc_stat_query(struct wlan_ipa_priv *ipa_ctx,
|
||||
*ipa_rx_diff = 0;
|
||||
|
||||
qdf_mutex_acquire(&ipa_ctx->ipa_lock);
|
||||
if ((ipa_ctx->activated_fw_pipe == WLAN_IPA_UC_NUM_WDI_PIPE) &&
|
||||
if (wlan_ipa_is_fw_wdi_activated(ipa_ctx) &&
|
||||
(false == ipa_ctx->resource_loading)) {
|
||||
*ipa_tx_diff = ipa_ctx->ipa_tx_packets_diff;
|
||||
*ipa_rx_diff = ipa_ctx->ipa_rx_packets_diff;
|
||||
@ -466,7 +466,7 @@ void wlan_ipa_uc_stat_query(struct wlan_ipa_priv *ipa_ctx,
|
||||
void wlan_ipa_uc_stat_request(struct wlan_ipa_priv *ipa_ctx, uint8_t reason)
|
||||
{
|
||||
qdf_mutex_acquire(&ipa_ctx->ipa_lock);
|
||||
if ((ipa_ctx->activated_fw_pipe == WLAN_IPA_UC_NUM_WDI_PIPE) &&
|
||||
if (wlan_ipa_is_fw_wdi_activated(ipa_ctx) &&
|
||||
(false == ipa_ctx->resource_loading)) {
|
||||
ipa_ctx->stat_req_reason = reason;
|
||||
cdp_ipa_get_stat(ipa_ctx->dp_soc, ipa_ctx->dp_pdev);
|
||||
|
Loading…
Reference in New Issue
Block a user