aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/octeontx2/af/rvu.c
diff options
context:
space:
mode:
authorGeetha sowjanya <gakula@marvell.com>2021-08-22 17:32:20 +0530
committerDavid S. Miller <davem@davemloft.net>2021-08-22 21:38:15 +0100
commitc0fa2cff8822c40a3f15b244485214f91e326f76 (patch)
tree84dfa7172427019b704fda89a79cb7971072ae2e /drivers/net/ethernet/marvell/octeontx2/af/rvu.c
parentocteontx2-af: cn10k: Fix SDP base channel number (diff)
downloadlinux-dev-c0fa2cff8822c40a3f15b244485214f91e326f76.tar.xz
linux-dev-c0fa2cff8822c40a3f15b244485214f91e326f76.zip
octeontx2-af: Handle return value in block reset.
Print debug message if any of the RVU hardware blocks reset fails. Signed-off-by: Geetha sowjanya <gakula@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/af/rvu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c
index c2438ba5e2ec..84f0aaa8665d 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.c
@@ -498,12 +498,15 @@ int rvu_lf_reset(struct rvu *rvu, struct rvu_block *block, int lf)
static void rvu_block_reset(struct rvu *rvu, int blkaddr, u64 rst_reg)
{
struct rvu_block *block = &rvu->hw->block[blkaddr];
+ int err;
if (!block->implemented)
return;
rvu_write64(rvu, blkaddr, rst_reg, BIT_ULL(0));
- rvu_poll_reg(rvu, blkaddr, rst_reg, BIT_ULL(63), true);
+ err = rvu_poll_reg(rvu, blkaddr, rst_reg, BIT_ULL(63), true);
+ if (err)
+ dev_err(rvu->dev, "HW block:%d reset failed\n", blkaddr);
}
static void rvu_reset_all_blocks(struct rvu *rvu)