projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e1caaf
)
can: tcan4x5x: tcan4x5x_regmap: set reg_stride to 4
author
Marc Kleine-Budde
<mkl@pengutronix.de>
Tue, 15 Dec 2020 23:17:42 +0000
(
00:17
+0100)
committer
Marc Kleine-Budde
<mkl@pengutronix.de>
Wed, 6 Jan 2021 14:15:40 +0000
(15:15 +0100)
This patch sets the regmap stide to 4, as the chip only supports access on 32
bit alligned access.
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Tested-by: Sean Nyekjaer <sean@geanix.com>
Link:
https://lore.kernel.org/r/20201215231746.1132907-13-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/tcan4x5x-regmap.c
patch
|
blob
|
history
diff --git
a/drivers/net/can/m_can/tcan4x5x-regmap.c
b/drivers/net/can/m_can/tcan4x5x-regmap.c
index
73be4b6
..
c696343
100644
(file)
--- a/
drivers/net/can/m_can/tcan4x5x-regmap.c
+++ b/
drivers/net/can/m_can/tcan4x5x-regmap.c
@@
-55,6
+55,7
@@
static int tcan4x5x_regmap_read(void *context,
static const struct regmap_config tcan4x5x_regmap = {
.reg_bits = 32,
+ .reg_stride = 4,
.val_bits = 32,
.cache_type = REGCACHE_NONE,
.max_register = TCAN4X5X_MAX_REGISTER,