ionic: no fw read when PCI reset failed
authorShannon Nelson <shannon.nelson@amd.com>
Mon, 11 Dec 2023 18:58:01 +0000 (10:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 12:35:55 +0000 (12:35 +0000)
commit219e183272b4a566650a37264aff90a8c613d9b5
tree5da083b09b4dc768a0a675273f52396c8b78eba0
parent13943d6c82730a2a4e40e05d6deaca26a8de0a4d
ionic: no fw read when PCI reset failed

If there was a failed attempt to reset the PCI connection,
don't later try to read from PCI as the space is unmapped
and will cause a paging request crash.  When clearing the PCI
setup we can clear the dev_info register pointer, and check
it before using it in the fw_running test.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c
drivers/net/ethernet/pensando/ionic/ionic_dev.c