Skip to content

Commit ef5778f

Browse files
scosumarckleinebudde
authored andcommitted
can: tcan4x5x: Fix register range of first two blocks
According to the datasheet 0x10 is the last register in the first block, not register 0x2c. The datasheet lists the last register of the second block as 0x830, not 0x83c. Signed-off-by: Markus Schneider-Pargmann <[email protected]> Link: https://lore.kernel.org/all/[email protected] Signed-off-by: Marc Kleine-Budde <[email protected]>
1 parent 67727a1 commit ef5778f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ static int tcan4x5x_regmap_read(void *context,
9191
}
9292

9393
static const struct regmap_range tcan4x5x_reg_table_yes_range[] = {
94-
regmap_reg_range(0x0000, 0x002c), /* Device ID and SPI Registers */
95-
regmap_reg_range(0x0800, 0x083c), /* Device configuration registers and Interrupt Flags*/
94+
regmap_reg_range(0x0000, 0x0010), /* Device ID and SPI Registers */
95+
regmap_reg_range(0x0800, 0x0830), /* Device configuration registers and Interrupt Flags*/
9696
regmap_reg_range(0x1000, 0x10fc), /* M_CAN */
9797
regmap_reg_range(0x8000, 0x87fc), /* MRAM */
9898
};

0 commit comments

Comments
 (0)