Skip to content

Commit c6a9e7a

Browse files
Vasundhara VolamJakub Kicinski
authored andcommitted
bnxt_en: Adjust the time to wait before polling firmware readiness.
When firmware indicates that driver needs to invoke firmware reset which is common for both error recovery and live firmware reset path, driver needs a different time to wait before polling for firmware readiness. Modify the wait time to fw_reset_min_dsecs, which is initialised to correct timeout for error recovery and firmware reset. Fixes: 4037eb7 ("bnxt_en: Add a new BNXT_FW_RESET_STATE_POLL_FW_DOWN state.") Signed-off-by: Vasundhara Volam <[email protected]> Signed-off-by: Michael Chan <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 83a46a8 commit c6a9e7a

File tree

1 file changed

+2
-5
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+2
-5
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10669,14 +10669,11 @@ static void bnxt_fw_reset_task(struct work_struct *work)
1066910669
bp->fw_reset_state = BNXT_FW_RESET_STATE_RESET_FW;
1067010670
}
1067110671
/* fall through */
10672-
case BNXT_FW_RESET_STATE_RESET_FW: {
10673-
u32 wait_dsecs = bp->fw_health->post_reset_wait_dsecs;
10674-
10672+
case BNXT_FW_RESET_STATE_RESET_FW:
1067510673
bnxt_reset_all(bp);
1067610674
bp->fw_reset_state = BNXT_FW_RESET_STATE_ENABLE_DEV;
10677-
bnxt_queue_fw_reset_work(bp, wait_dsecs * HZ / 10);
10675+
bnxt_queue_fw_reset_work(bp, bp->fw_reset_min_dsecs * HZ / 10);
1067810676
return;
10679-
}
1068010677
case BNXT_FW_RESET_STATE_ENABLE_DEV:
1068110678
if (test_bit(BNXT_STATE_FW_FATAL_COND, &bp->state) &&
1068210679
bp->fw_health) {

0 commit comments

Comments
 (0)