qcacmn: Add target ce configs based on pktlog feature for Adrastea

When pktlog feature is disabled then the target CE11 attributes
should be set to CE_ATTR_DISABLE_INTR. Currently, the target ce configs
are attached unconditionally. This leads to incorrect attribute set for
CE11 in case when pktlog feature is disabled and thereby abortion of
HWDTIM in target as target checks host_ie for CE11. Currently host_ie
is not set for CE11, this results in aborting of suspend mode as
target assumes that host is using CE11.

To mitigate this issue, attach the target ce configs based on pktlog
feature. When pktlog feature is disabled then set the host_ie for
CE11 which will indicate to target that host is not using CE11 and
target will not abort HWDTIM mode.

Change-Id: I331d3bd8eda0c2aba9d86fb7601ac2b74c9e2c31
CRs-Fixed: 2459887
This commit is contained in:
Surabhi Vishnoi
2019-07-05 12:24:13 +05:30
committed by nshrivas
parent 56a6f31213
commit b30b9176a2
2 changed files with 43 additions and 5 deletions

View File

@@ -3132,16 +3132,21 @@ void hif_ce_prepare_config(struct hif_softc *scn)
scn->ce_count = QCA_6390_CE_COUNT;
break;
case TARGET_TYPE_ADRASTEA:
if (hif_is_attribute_set(scn, HIF_LOWDESC_CE_NO_PKTLOG_CFG))
if (hif_is_attribute_set(scn, HIF_LOWDESC_CE_NO_PKTLOG_CFG)) {
hif_state->host_ce_config =
host_lowdesc_ce_config_wlan_adrastea_nopktlog;
else
hif_state->target_ce_config =
target_lowdesc_ce_config_wlan_adrastea_nopktlog;
hif_state->target_ce_config_sz =
sizeof(target_lowdesc_ce_config_wlan_adrastea_nopktlog);
} else {
hif_state->host_ce_config =
host_ce_config_wlan_adrastea;
hif_state->target_ce_config = target_ce_config_wlan_adrastea;
hif_state->target_ce_config_sz =
hif_state->target_ce_config =
target_ce_config_wlan_adrastea;
hif_state->target_ce_config_sz =
sizeof(target_ce_config_wlan_adrastea);
}
break;
}