Merge "qcacmn: Set trigger action after checking Umac reset in progress"
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

commit
2e3e6b1315
@@ -1130,9 +1130,9 @@ void dp_umac_reset_complete_umac_recovery(struct dp_soc *soc)
|
||||
* @soc: dp soc handle
|
||||
* @is_target_recovery: Flag to indicate if it is triggered for target recovery
|
||||
*
|
||||
* Return: void
|
||||
* Return: status
|
||||
*/
|
||||
void dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
QDF_STATUS dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
bool is_target_recovery)
|
||||
{
|
||||
struct dp_soc_be *be_soc = dp_get_be_soc_from_dp_soc(soc);
|
||||
@@ -1140,14 +1140,14 @@ void dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
struct dp_soc_mlo_umac_reset_ctx *grp_umac_reset_ctx;
|
||||
|
||||
if (!mlo_ctx)
|
||||
return;
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
grp_umac_reset_ctx = &mlo_ctx->grp_umac_reset_ctx;
|
||||
qdf_spin_lock_bh(&grp_umac_reset_ctx->grp_ctx_lock);
|
||||
|
||||
if (grp_umac_reset_ctx->umac_reset_in_progress) {
|
||||
qdf_spin_unlock_bh(&grp_umac_reset_ctx->grp_ctx_lock);
|
||||
return;
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
grp_umac_reset_ctx->umac_reset_in_progress = true;
|
||||
@@ -1160,6 +1160,8 @@ void dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
grp_umac_reset_ctx->umac_reset_count++;
|
||||
|
||||
qdf_spin_unlock_bh(&grp_umac_reset_ctx->grp_ctx_lock);
|
||||
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -2707,9 +2707,9 @@ void dp_umac_reset_complete_umac_recovery(struct dp_soc *soc);
|
||||
* @soc: dp soc handle
|
||||
* @is_target_recovery: Flag to indicate if it is triggered for target recovery
|
||||
*
|
||||
* Return: void
|
||||
* Return: status
|
||||
*/
|
||||
void dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
QDF_STATUS dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
bool is_target_recovery);
|
||||
|
||||
/**
|
||||
|
@@ -327,11 +327,12 @@ bool dp_check_umac_reset_in_progress(struct dp_soc *soc)
|
||||
* @soc: dp soc handle
|
||||
* @is_target_recovery: Flag to indicate if it is triggered for target recovery
|
||||
*
|
||||
* Return: void
|
||||
* Return: status
|
||||
*/
|
||||
static void dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
static QDF_STATUS dp_umac_reset_initiate_umac_recovery(struct dp_soc *soc,
|
||||
bool is_target_recovery)
|
||||
{
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -482,10 +483,14 @@ static int dp_umac_reset_rx_event_handler(void *dp_ctx)
|
||||
umac_reset_ctx->ts.trigger_start =
|
||||
qdf_get_log_timestamp_usecs();
|
||||
|
||||
action = UMAC_RESET_ACTION_DO_TRIGGER_RECOVERY;
|
||||
|
||||
status =
|
||||
dp_umac_reset_initiate_umac_recovery(soc, target_recovery);
|
||||
|
||||
if (status != QDF_STATUS_SUCCESS)
|
||||
break;
|
||||
|
||||
action = UMAC_RESET_ACTION_DO_TRIGGER_RECOVERY;
|
||||
|
||||
break;
|
||||
|
||||
case UMAC_RESET_RX_EVENT_DO_PRE_RESET:
|
||||
|
Reference in New Issue
Block a user