net: stmmac: dwmac4: Fix high address display by updating reg_space[] from register values

[ Upstream commit f84ef58e55 ]

The high address will display as 0 if the driver does not set the
reg_space[]. To fix this, read the high address registers and
update the reg_space[] accordingly.

Fixes: fbf68229ff ("net: stmmac: unify registers dumps methods")
Signed-off-by: Ley Foon Tan <leyfoon.tan@starfivetech.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241021054625.1791965-1-leyfoon.tan@starfivetech.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Ley Foon Tan 2024-10-21 13:46:25 +08:00 • committed by Greg Kroah-Hartman
commit bf6b2cd3c5
2 changed files with 10 additions and 0 deletions