qcacmn: Add API to clear SOC from partner_map

Clear the target assert seen SOC from partner_map to disengage it from
umac reset process.

Change-Id: I588ae15977b1fd989b6dccb16c5fa3a5269f5f6c
CRs-Fixed: 3433794
这个提交包含在:
Shashikala Prabhu
2023-03-15 15:11:47 +05:30
提交者 Madan Koyyalamudi
父节点 7265d860b2
当前提交 f77ba421ee
修改 3 个文件,包含 42 行新增4 行删除

查看文件

@@ -1001,6 +1001,30 @@ static void dp_umac_reset_update_partner_map(struct dp_mlo_ctxt *mlo_ctx,
qdf_atomic_clear_bit(chip_id, &grp_umac_reset_ctx->partner_map);
}
QDF_STATUS dp_umac_reset_notify_asserted_soc(struct dp_soc *soc)
{
struct dp_mlo_ctxt *mlo_ctx;
struct dp_soc_be *be_soc;
be_soc = dp_get_be_soc_from_dp_soc(soc);
if (!be_soc) {
dp_umac_reset_err("null be_soc");
return QDF_STATUS_E_NULL_VALUE;
}
mlo_ctx = be_soc->ml_ctxt;
if (!mlo_ctx) {
/* This API can be called for non-MLO SOC as well. Hence, return
* the status as success when mlo_ctx is NULL.
*/
return QDF_STATUS_SUCCESS;
}
dp_umac_reset_update_partner_map(mlo_ctx, be_soc->mlo_chip_id, false);
return QDF_STATUS_SUCCESS;
}
/**
* dp_umac_reset_complete_umac_recovery() - Complete Umac reset session
* @soc: dp soc handle