can: tcan4x5x: regmap: fix max register value
authorMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 14 Jan 2022 17:50:54 +0000 (18:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Feb 2022 16:27:13 +0000 (17:27 +0100)
commit03a91f9fa93b55685601548f882df8d0e2eecc29
tree96d836c6233be8c62396b991a1f81c879dd3919f
parentd0a56e4ebc6be488055e4a51f22ead4cb60df6bd
can: tcan4x5x: regmap: fix max register value

[ Upstream commit e59986de5ff701494e14c722b78b6e6d513e0ab5 ]

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: 6e1caaf8ed22 ("can: tcan4x5x: fix max register value")
Link: https://lore.kernel.org/all/20220119064011.2943292-1-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/m_can/tcan4x5x-regmap.c