mirror of
https://github.com/torvalds/linux.git
synced 2026-01-25 15:03:52 +08:00
Merge branch 'ionic-cleanups' into main
Shannon Nelson says: ==================== ionic: three little changes These are three little changes for the code from inspection and testing. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -409,6 +409,7 @@ static void ionic_remove(struct pci_dev *pdev)
|
||||
timer_shutdown_sync(&ionic->watchdog_timer);
|
||||
|
||||
if (ionic->lif) {
|
||||
cancel_work_sync(&ionic->lif->deferred.work);
|
||||
/* prevent adminq cmds if already known as down */
|
||||
if (test_and_clear_bit(IONIC_LIF_F_FW_RESET, ionic->lif->state))
|
||||
set_bit(IONIC_LIF_F_FW_STOPPING, ionic->lif->state);
|
||||
|
||||
@@ -424,9 +424,9 @@ do_check_time:
|
||||
if (fw_hb_ready != idev->fw_hb_ready) {
|
||||
idev->fw_hb_ready = fw_hb_ready;
|
||||
if (!fw_hb_ready)
|
||||
dev_info(ionic->dev, "FW heartbeat stalled at %d\n", fw_hb);
|
||||
dev_info(ionic->dev, "FW heartbeat stalled at %u\n", fw_hb);
|
||||
else
|
||||
dev_info(ionic->dev, "FW heartbeat restored at %d\n", fw_hb);
|
||||
dev_info(ionic->dev, "FW heartbeat restored at %u\n", fw_hb);
|
||||
}
|
||||
|
||||
if (!fw_hb_ready)
|
||||
|
||||
@@ -3526,10 +3526,6 @@ void ionic_lif_free(struct ionic_lif *lif)
|
||||
lif->info = NULL;
|
||||
lif->info_pa = 0;
|
||||
|
||||
/* unmap doorbell page */
|
||||
ionic_bus_unmap_dbpage(lif->ionic, lif->kern_dbpage);
|
||||
lif->kern_dbpage = NULL;
|
||||
|
||||
mutex_destroy(&lif->config_lock);
|
||||
mutex_destroy(&lif->queue_lock);
|
||||
|
||||
@@ -3555,6 +3551,9 @@ void ionic_lif_deinit(struct ionic_lif *lif)
|
||||
ionic_lif_qcq_deinit(lif, lif->notifyqcq);
|
||||
ionic_lif_qcq_deinit(lif, lif->adminqcq);
|
||||
|
||||
ionic_bus_unmap_dbpage(lif->ionic, lif->kern_dbpage);
|
||||
lif->kern_dbpage = NULL;
|
||||
|
||||
ionic_lif_reset(lif);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user