Commit cb07fe31 authored by Nir Dotan's avatar Nir Dotan Committed by Greg Kroah-Hartman

mlxsw: pci: Return error on PCI reset timeout

[ Upstream commit 67c14cc9 ]

Return an appropriate error in the case when the driver timeouts on waiting
for firmware to go out of PCI reset.

Fixes: 233fa44b ("mlxsw: pci: Implement reset done check")
Signed-off-by: 's avatarNir Dotan <>
Acked-by: 's avatarJiri Pirko <>
Signed-off-by: 's avatarIdo Schimmel <>
Signed-off-by: 's avatarDavid S. Miller <>
Signed-off-by: 's avatarSasha Levin <>
parent e12b7689
......@@ -1367,10 +1367,10 @@ static int mlxsw_pci_sw_reset(struct mlxsw_pci *mlxsw_pci,
u32 val = mlxsw_pci_read32(mlxsw_pci, FW_READY);
return 0;
} while (time_before(jiffies, end));
return 0;
return -EBUSY;
static int mlxsw_pci_alloc_irq_vectors(struct mlxsw_pci *mlxsw_pci)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment