aboutsummaryrefslogtreecommitdiff
path: root/pcie/gen1_2/tx.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcie/gen1_2/tx.c')
-rw-r--r--pcie/gen1_2/tx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/pcie/gen1_2/tx.c b/pcie/gen1_2/tx.c
index bb03dad4a300..6e85aa519e1b 100644
--- a/pcie/gen1_2/tx.c
+++ b/pcie/gen1_2/tx.c
@@ -2602,8 +2602,9 @@ static int iwl_trans_pcie_send_hcmd_sync(struct iwl_trans *trans,
}
if (test_bit(STATUS_FW_ERROR, &trans->status)) {
- if (!test_and_clear_bit(STATUS_SUPPRESS_CMD_ERROR_ONCE,
- &trans->status)) {
+ if (trans->suppress_cmd_error_once) {
+ trans->suppress_cmd_error_once = false;
+ } else {
IWL_ERR(trans, "FW error in SYNC CMD %s\n", cmd_str);
dump_stack();
}