bnxt_en: Fix error recovery regression
Michael Chan authored
commit eca4cf12 upstream.

The recent patch has introduced a regression by not reading the reset
count in the ERROR_RECOVERY async event handler.  We may have just
gone through a reset and the reset count has just incremented.  If
we don't update the reset count in the ERROR_RECOVERY event handler,
the health check timer will see that the reset count has changed and
will initiate an unintended reset.

Restore the unconditional update of the reset count in
bnxt_async_event_process() if error recovery watchdog is enabled.
Also, update the reset count at the end of the reset sequence to
make it even more robust.

Fixes: 1b2b9183

 ("bnxt_en: Fix possible unintended driver initiated error recovery")
Reviewed-by: default avatarEdwin Peer <edwin.peer@broadcom.com>
Signed-off-by: default avatarMichael Chan <michael.chan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
45c0e1ee
Name Last commit Last update
Documentation dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes"
arch ARC: export clear_user_page() for modules
block block, bfq: honor already-setup queue merges
certs certs: Trigger creation of RSA module signing key if it's not an RSA key
crypto crypto: ecc - handle unaligned input buffer in ecc_swap_digits
drivers bnxt_en: Fix error recovery regression
fs io_uring: retry in case of short read on block device
include fq_codel: reject silly quantum parameters
init init: Suppress wrong warning for bootconfig cmdline parameter
ipc Merge branch 'akpm' (patches from Andrew)
kernel tracing/boot: Fix a hist trigger dependency for boot time tracing
lib lib/test_stackinit: Fix static initializer test
mm mm/mempolicy: fix a race between offset_il_node and mpol_rebind_task
net ip6_gre: Revert "ip6_gre: add validation for csum_start"
samples samples: pktgen: fix to print when terminated normally
scripts gen_compile_commands: fix missing 'sys' package
security Smack: Fix wrong semantics in smk_access_entry()
sound ASoC: soc-pcm: protect BE dailink state changes in trigger
tools selftests: mptcp: clean tmp files in simult_flows
usr .gitignore: prefix local generated files with a slash
virt KVM: Do not leak memory for duplicate debugfs directories
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: use 'dts' diff driver for dts files
.gitignore .gitignore: ignore only top-level modules.builtin
.mailmap Merge tag 'm68k-for-v5.14-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
COPYING COPYING: state that all contributions really are covered by this file
CREDITS MAINTAINERS: move Murali Karicheri to credits
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y
Kconfig kbuild: ensure full rebuild when the compiler is updated
MAINTAINERS MAINTAINERS: exfat: update my email address
Makefile Linux 5.14.6
README Drop all 00-INDEX files from Documentation/
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.