Skip to content

Commit e59986d

Browse files
can: tcan4x5x: regmap: fix max register value
The MRAM of the tcan4x5x has a size of 2K and starts at 0x8000. There are no further registers in the tcan4x5x making 0x87fc the biggest addressable register. This patch fixes the max register value of the regmap config from 0x8ffc to 0x87fc. Fixes: 6e1caaf ("can: tcan4x5x: fix max register value") Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent db72589 commit e59986d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/can/m_can/tcan4x5x-regmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#define TCAN4X5X_SPI_INSTRUCTION_WRITE (0x61 << 24)
1313
#define TCAN4X5X_SPI_INSTRUCTION_READ (0x41 << 24)
1414

15-
#define TCAN4X5X_MAX_REGISTER 0x8ffc
15+
#define TCAN4X5X_MAX_REGISTER 0x87fc
1616

1717
static int tcan4x5x_regmap_gather_write(void *context,
1818
const void *reg, size_t reg_len,

0 commit comments

Comments
 (0)