mlxsw: pci: Return error on PCI reset timeout
authorNir Dotan <nird@mellanox.com>
Fri, 18 Jan 2019 15:57:57 +0000 (15:57 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:57 +0000 (10:08 +0100)
commitd7ac3d3135ff793d442e92030d89dee0f2e12303
treecb610580c7cf7a9c56c6b76d912bff6ef72776f7
parent0aafea5d4b22fe9403e89d82e02597e4493d5d0f
mlxsw: pci: Return error on PCI reset timeout

[ Upstream commit 67c14cc9b35055264fc0efed00159a7de1819f1b ]

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

Fixes: 233fa44bd67a ("mlxsw: pci: Implement reset done check")
Signed-off-by: Nir Dotan <nird@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/pci.c