ionic: refresh devinfo after fw-upgrade
authorShannon Nelson <snelson@pensando.io>
Thu, 30 Apr 2020 21:33:42 +0000 (14:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 01:02:46 +0000 (18:02 -0700)
Make sure we can report the new FW version after a
fw-upgrade has finished by re-reading the device's
fw version information.

Fixes: c672412f6172 ("ionic: remove lifs on fw reset")
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c

index bbc6c79..6fcfb63 100644 (file)
@@ -2116,6 +2116,7 @@ static void ionic_lif_handle_fw_up(struct ionic_lif *lif)
 
        dev_info(ionic->dev, "FW Up: restarting LIFs\n");
 
+       ionic_init_devinfo(ionic);
        err = ionic_qcqs_alloc(lif);
        if (err)
                goto err_out;