]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: stmmac: dwmac4: Fix high address display by updating reg_space[] from register...
authorLey Foon Tan <leyfoon.tan@starfivetech.com>
Mon, 21 Oct 2024 05:46:25 +0000 (13:46 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 29 Oct 2024 10:29:40 +0000 (11:29 +0100)
commitf84ef58e553206b02d06e02158c98fbccba25d19
tree6728e20ba4e0f9903ffdcf17c892fef9f753a6d9
parent94c11e852955b2eef5c4f0b36cfeae7dcf11a759
net: stmmac: dwmac4: Fix high address display by updating reg_space[] from register values

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: fbf68229ffe7 ("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>
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c
drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.h