octeontx2-af: Increase link credit restore polling timeout
authorGeetha sowjanya <gakula@marvell.com>
Fri, 21 Jan 2022 06:34:44 +0000 (12:04 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:11 +0000 (17:27 +0100)
commit35dd0b7e5a13dec6a7623c8db7c57c59f9110ffb
tree58049b5bce3dc7b32cd64bf91ee11cee05b805b7
parentf13bf41cbe2d1dbf9ede3569bd5d75353ab68f01
octeontx2-af: Increase link credit restore polling timeout

[ Upstream commit 1581d61b42d985cefe7b71eea67ab3bfcbf34d0f ]

It's been observed that sometimes link credit restore takes
a lot of time than the current timeout. This patch increases
the default timeout value and return the proper error value
on failure.

Fixes: 1c74b89171c3 ("octeontx2-af: Wait for TX link idle for credits change")
Signed-off-by: Geetha sowjanya <gakula@marvell.com>
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c