net: mvpp2: clear BM pool before initialization
authorJenishkumar Maheshbhai Patel <jpatel2@marvell.com>
Fri, 19 Jan 2024 03:59:14 +0000 (19:59 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 24 Jan 2024 20:27:33 +0000 (12:27 -0800)
commit9f538b415db862e74b8c5d3abbccfc1b2b6caa38
treeb46e1498dc373e7ef0176fa9eedcfef6a8a9037c
parenta5f5eee282a0aae80227697e1d9c811b1726d31d
net: mvpp2: clear BM pool before initialization

Register value persist after booting the kernel using
kexec which results in kernel panic. Thus clear the
BM pool registers before initialisation to fix the issue.

Fixes: 3f518509dedc ("ethernet: Add new driver for Marvell Armada 375 network unit")
Signed-off-by: Jenishkumar Maheshbhai Patel <jpatel2@marvell.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://lore.kernel.org/r/20240119035914.2595665-1-jpatel2@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c