]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: limit fw delay in kdump to 5s after boot
authorMichal Schmidt <mschmidt@redhat.com>
Thu, 7 May 2015 18:37:10 +0000 (20:37 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 10 May 2015 23:23:22 +0000 (19:23 -0400)
commitb12eba10e74d1e7601234a5f6a597570f103987a
treec9fa6726361889365189a09295408d42dccebac3
parent4724491497d485dbd0131291d115d6201a6c943f
bnx2x: limit fw delay in kdump to 5s after boot

Commit 09bfac4e19a2 "bnx2x: Delay during kdump load" added a 5 seconds
delay to bnx2x's probe function in the kdump case to let the firmware
realize the old driver is gone.

The problem with the delay is that it is per-device, so if you have
several bnx2x NICs in NPAR mode, the delays can accumulate to minutes.

Fix it by adjusting the delay so that we do not wait more than
necessary, i.e. no more delaying after 5 seconds of kernel boot time.

Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c