From: Bernhard Beschow <[email protected]> The RXIMR registers are not affected by soft reset, so their reset mask must preserve all entries. Set the mask for the entire array instead of only the first register.
Signed-off-by: Bernhard Beschow <[email protected]> Tested-by: Pavel Pisa <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-id: [email protected] Signed-off-by: Peter Maydell <[email protected]> --- hw/net/can/flexcan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/can/flexcan.c b/hw/net/can/flexcan.c index f84f090a7fd..205d0d64134 100644 --- a/hw/net/can/flexcan.c +++ b/hw/net/can/flexcan.c @@ -140,7 +140,7 @@ static const FlexcanRegs flexcan_regs_reset_mask = { .data = { 0xFFFFFFFF, 0xFFFFFFFF }, } }, ._reserved4 = {0}, - .rximr = {0xFFFFFFFF}, + .rximr = { [0 ... 63] = 0xFFFFFFFF }, ._reserved5 = {0}, .gfwr_mx6 = 0, ._reserved6 = {0}, -- 2.43.0
