ionic: fw upgrade bug fixes
Subsystems (3)
v2 cover ionic: fw upgrade bug fixes
These patches address issues found in additional internal fw-upgrade testing.
Shannon Nelson (3):
ionic: no link check until after probe
ionic: refresh devinfo after fw-upgrade
ionic: add device reset to fw upgrade down
v2:
- replaced extra state flag with postponing first link check
- added device reset patch
drivers/net/ethernet/pensando/ionic/ionic_lif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
PATCH v2 1/3 ionic: no link check until after probe
Don't bother with the link check during probe, let the watchdog notice the first link-up. This allows probe to finish cleanly without any interruptions from over excited user programs opening the device as soon as it is registered.
--- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 2 -- 1 file changed, 2 deletions(-)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +0 -2
@@ -2549,8 +2549,6 @@ int ionic_lifs_register(struct ionic *ionic)dev_err (ionic->dev,"Cannot register net device, aborting\n" );return err; } - -ionic_link_status_check_request (ionic->master_lif); ionic->master_lif->registered = true;return 0 ;
Signature · 1 line
2.17.1
PATCH v2 2/3 ionic: refresh devinfo after fw-upgrade
In reply to Shannon NelsonMake sure we can report the new FW version after a fw-upgrade has finished by re-reading the device's fw version information.
--- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +1 -0
@@ -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;
Signature · 1 line
2.17.1
PATCH v2 3/3 ionic: add device reset to fw upgrade down
In reply to Shannon NelsonDoing a device reset addresses an obscure FW timing issue in the FW upgrade process.
--- drivers/net/ethernet/pensando/ionic/ionic_lif.c | 1 + 1 file changed, 1 insertion(+)
drivers/net/ethernet/pensando/ionic/ionic_lif.c +1 -0
@@ -2101,6 +2101,7 @@ static void ionic_lif_handle_fw_down(struct ionic_lif *lif)ionic_txrx_free (lif); }ionic_lifs_deinit (ionic); +ionic_reset (ionic);ionic_qcqs_free (lif);dev_info (ionic->dev,"FW Down: LIFs stopped\n" );
Signature · 1 line
2.17.1
David Miller
maintainerFrom: Shannon Nelson <[email protected]>
Date: Thu, 30 Apr 2020 14:33:40 -0700
Quoted 11 lines
These patches address issues found in additional internal fw-upgrade testing.
Shannon Nelson (3):
ionic: no link check until after probe
ionic: refresh devinfo after fw-upgrade
ionic: add device reset to fw upgrade downv2:
- replaced extra state flag with postponing first link check
- added device reset patch
Series applied, thank you.