qcacmn: Hook the UMAC reset in the target attach path

Call UMAC reset initialization API from soc_attach_target().
FW exposes a service bit for this feature, use that to conditionally
enable this feature. Also, add default log levels for this feature.

CRs-Fixed: 3253464
Change-Id: Ia7c9cf07a7ab7b000ebe452ab074a82173b70129
This commit is contained in:
Shiva Krishna Pittala
2022-07-27 00:37:43 +05:30
committed by Madan Koyyalamudi
parent 53537c67e1
commit 8641a158f3
11 changed files with 138 additions and 15 deletions

View File

@@ -6539,6 +6539,13 @@ dp_soc_attach_target_wifi3(struct cdp_soc_t *cdp_soc)
return status;
}
status = dp_soc_umac_reset_init(soc);
if (status != QDF_STATUS_SUCCESS &&
status != QDF_STATUS_E_NOSUPPORT) {
dp_err("Failed to initialize UMAC reset");
return status;
}
status = dp_rx_target_fst_config(soc);
if (status != QDF_STATUS_SUCCESS &&
status != QDF_STATUS_E_NOSUPPORT) {
@@ -12325,6 +12332,11 @@ static QDF_STATUS dp_soc_set_param(struct cdp_soc_t *soc_hdl,
dp_info("Rssi dbm converstion support:%u",
soc->features.rssi_dbm_conv_support);
break;
case DP_SOC_PARAM_UMAC_HW_RESET_SUPPORT:
soc->features.umac_hw_reset_support = value;
dp_info("UMAC HW reset support :%u",
soc->features.umac_hw_reset_support);
break;
default:
dp_info("not handled param %d ", param);
break;
@@ -12873,6 +12885,7 @@ static struct cdp_cmn_ops dp_ops_cmn = {
#if defined(WLAN_FEATURE_11BE_MLO) && defined(WLAN_MLO_MULTI_CHIP)
.txrx_recovery_vdev_flush_peers = dp_recovery_vdev_flush_peers,
#endif
.txrx_umac_reset_deinit = dp_soc_umac_reset_deinit,
};
static struct cdp_ctrl_ops dp_ops_ctrl = {