Message ID | 1426693992-31163-12-git-send-email-ben.dooks@codethink.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Le 18/03/2015 16:53, Ben Dooks a écrit : > 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> > -- > CC: Wolfgang Grandegger <wg@grandegger.com> > CC: Marc Kleine-Budde <mkl@pengutronix.de> > CC: linux-can@vger.kernel.org > CC: netdev@vger.kernel.org > CC: Nicolas Ferre <nicolas.ferre@atmel.com> Sure! Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Thanks, bye. > --- > drivers/net/can/at91_can.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c > index eeb4b8b..f4e40aa 100644 > --- a/drivers/net/can/at91_can.c > +++ b/drivers/net/can/at91_can.c > @@ -291,13 +291,13 @@ static inline unsigned int get_tx_echo_mb(const struct at91_priv *priv) > > static inline u32 at91_read(const struct at91_priv *priv, enum at91_reg reg) > { > - return __raw_readl(priv->reg_base + reg); > + return readl_relaxed(priv->reg_base + reg); > } > > static inline void at91_write(const struct at91_priv *priv, enum at91_reg reg, > u32 value) > { > - __raw_writel(value, priv->reg_base + reg); > + writel_relaxed(value, priv->reg_base + reg); > } > > static inline void set_mb_mode_prio(const struct at91_priv *priv, >
On 03/18/2015 04:53 PM, Ben Dooks wrote: > 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> applied to can-next. Thanks, Marc
diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index eeb4b8b..f4e40aa 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -291,13 +291,13 @@ static inline unsigned int get_tx_echo_mb(const struct at91_priv *priv) static inline u32 at91_read(const struct at91_priv *priv, enum at91_reg reg) { - return __raw_readl(priv->reg_base + reg); + return readl_relaxed(priv->reg_base + reg); } static inline void at91_write(const struct at91_priv *priv, enum at91_reg reg, u32 value) { - __raw_writel(value, priv->reg_base + reg); + writel_relaxed(value, priv->reg_base + reg); } static inline void set_mb_mode_prio(const struct at91_priv *priv,
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> -- CC: Wolfgang Grandegger <wg@grandegger.com> CC: Marc Kleine-Budde <mkl@pengutronix.de> CC: linux-can@vger.kernel.org CC: netdev@vger.kernel.org CC: Nicolas Ferre <nicolas.ferre@atmel.com> --- drivers/net/can/at91_can.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)