ionic: print firmware version on identify
authorShannon Nelson <snelson@pensando.io>
Tue, 27 Jul 2021 17:43:27 +0000 (10:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 19:15:21 +0000 (20:15 +0100)
Print the version of the DSC firmware seen when we do a fresh
ident check.  Because the FW can be updated by the external
orchestration system, this helps us track that FW has been
updated on the DSC.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_main.c

index 61cfe21..5f1e5b6 100644 (file)
@@ -450,6 +450,8 @@ int ionic_identify(struct ionic *ionic)
        }
        mutex_unlock(&ionic->dev_cmd_lock);
 
+       dev_info(ionic->dev, "FW: %s\n", idev->dev_info.fw_version);
+
        if (err) {
                dev_err(ionic->dev, "Cannot identify ionic: %dn", err);
                goto err_out;