Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e581486 authored by Rasesh Mody's avatar Rasesh Mody Committed by David S. Miller
Browse files

bna: Fix for handling firmware heartbeat failure



This patch contains a fix for gracefully handling firmware heartbeat
failure instead of forcing panic.

Signed-off-by: default avatarDebashis Dutt <ddutt@brocade.com>
Signed-off-by: default avatarRasesh Mody <rmody@brocade.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 34206f26
Loading
Loading
Loading
Loading
+3 −7
Original line number Original line Diff line number Diff line
@@ -2219,13 +2219,9 @@ bfa_nw_ioc_get_mac(struct bfa_ioc *ioc)
static void
static void
bfa_ioc_recover(struct bfa_ioc *ioc)
bfa_ioc_recover(struct bfa_ioc *ioc)
{
{
	u16 bdf;
	pr_crit("Heart Beat of IOC has failed\n");

	bfa_ioc_stats(ioc, ioc_hbfails);
	bdf = (ioc->pcidev.pci_slot << 8 | ioc->pcidev.pci_func << 3 |
	bfa_fsm_send_event(ioc, IOC_E_HBFAIL);
					ioc->pcidev.device_id);

	pr_crit("Firmware heartbeat failure at %d", bdf);
	BUG_ON(1);
}
}


static void
static void