Skip to content

Commit af9bfbd

Browse files
bjdooks-ctmarckleinebudde
authored andcommitted
can: at91_can: use endian agnostic IO accessors
Change __raw accesors to endian agnostic versions to allow the driver to work properly on big endian systems. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
1 parent 6d5a7a6 commit af9bfbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/can/at91_can.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,13 @@ static inline unsigned int get_tx_echo_mb(const struct at91_priv *priv)
291291

292292
static inline u32 at91_read(const struct at91_priv *priv, enum at91_reg reg)
293293
{
294-
return __raw_readl(priv->reg_base + reg);
294+
return readl_relaxed(priv->reg_base + reg);
295295
}
296296

297297
static inline void at91_write(const struct at91_priv *priv, enum at91_reg reg,
298298
u32 value)
299299
{
300-
__raw_writel(value, priv->reg_base + reg);
300+
writel_relaxed(value, priv->reg_base + reg);
301301
}
302302

303303
static inline void set_mb_mode_prio(const struct at91_priv *priv,

0 commit comments

Comments
 (0)