|
@@ -1367,10 +1367,10 @@ static int mlxsw_pci_sw_reset(struct mlxsw_pci *mlxsw_pci,
|
|
|
u32 val = mlxsw_pci_read32(mlxsw_pci, FW_READY);
|
|
u32 val = mlxsw_pci_read32(mlxsw_pci, FW_READY);
|
|
|
|
|
|
|
|
if ((val & MLXSW_PCI_FW_READY_MASK) == MLXSW_PCI_FW_READY_MAGIC)
|
|
if ((val & MLXSW_PCI_FW_READY_MASK) == MLXSW_PCI_FW_READY_MAGIC)
|
|
|
- break;
|
|
|
|
|
|
|
+ return 0;
|
|
|
cond_resched();
|
|
cond_resched();
|
|
|
} while (time_before(jiffies, end));
|
|
} while (time_before(jiffies, end));
|
|
|
- return 0;
|
|
|
|
|
|
|
+ return -EBUSY;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
static int mlxsw_pci_alloc_irq_vectors(struct mlxsw_pci *mlxsw_pci)
|
|
static int mlxsw_pci_alloc_irq_vectors(struct mlxsw_pci *mlxsw_pci)
|