summaryrefslogtreecommitdiff
path: root/drivers/net/can/m_can
diff options
context:
space:
mode:
authorMarc Kleine-Budde <mkl@pengutronix.de>2020-12-16 02:17:43 +0300
committerMarc Kleine-Budde <mkl@pengutronix.de>2021-01-06 17:15:40 +0300
commit5584114b35f89d43db4fdaa36d7f2650fc0e1bca (patch)
treeb1547a0fe8d50269961a434f7f8941275b989dce /drivers/net/can/m_can
parentaaf120c37cffc59b06a3da489bd0d678b365cd5a (diff)
downloadlinux-5584114b35f89d43db4fdaa36d7f2650fc0e1bca.tar.xz
can: tcan4x5x: add max_raw_{read,write} of 256
The tcan4x5x chip support bulk read/write, but as the length field is only 8 bits wide, the maximum is 256. A length of 0 is treated as 256. Reviewed-by: Dan Murphy <dmurphy@ti.com> Tested-by: Sean Nyekjaer <sean@geanix.com> Link: https://lore.kernel.org/r/20201215231746.1132907-14-mkl@pengutronix.de Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'drivers/net/can/m_can')
-rw-r--r--drivers/net/can/m_can/tcan4x5x-regmap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/can/m_can/tcan4x5x-regmap.c b/drivers/net/can/m_can/tcan4x5x-regmap.c
index c6963437064c..f113881fb012 100644
--- a/drivers/net/can/m_can/tcan4x5x-regmap.c
+++ b/drivers/net/can/m_can/tcan4x5x-regmap.c
@@ -67,6 +67,8 @@ static const struct regmap_bus tcan4x5x_bus = {
.read = tcan4x5x_regmap_read,
.reg_format_endian_default = REGMAP_ENDIAN_NATIVE,
.val_format_endian_default = REGMAP_ENDIAN_NATIVE,
+ .max_raw_read = 256,
+ .max_raw_write = 256,
};
int tcan4x5x_regmap_init(struct tcan4x5x_priv *priv)