diff options
author | Claudiu Manoil <claudiu.manoil@nxp.com> | 2016-11-16 15:40:27 +0100 |
---|---|---|
committer | Scott Wood <oss@buserror.net> | 2016-11-23 08:23:48 +0100 |
commit | 5a42f1ecb304789f75a017b2a36bc6d1dac6dcf2 (patch) | |
tree | 6d2160f1ab779f6d215c49e0ff1c02161e7d0003 /drivers/soc/fsl/qbman/qman.c | |
parent | soc/qman: Drop unused field from eqcr/dqrr descriptors (diff) | |
download | linux-5a42f1ecb304789f75a017b2a36bc6d1dac6dcf2.tar.xz linux-5a42f1ecb304789f75a017b2a36bc6d1dac6dcf2.zip |
soc/qbman: Handle endianness of qm/bm_in/out()
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'drivers/soc/fsl/qbman/qman.c')
-rw-r--r-- | drivers/soc/fsl/qbman/qman.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/fsl/qbman/qman.c b/drivers/soc/fsl/qbman/qman.c index c679e0285ccd..936aee19747d 100644 --- a/drivers/soc/fsl/qbman/qman.c +++ b/drivers/soc/fsl/qbman/qman.c @@ -321,12 +321,12 @@ struct qm_portal { /* Cache-inhibited register access. */ static inline u32 qm_in(struct qm_portal *p, u32 offset) { - return __raw_readl(p->addr.ci + offset); + return be32_to_cpu(__raw_readl(p->addr.ci + offset)); } static inline void qm_out(struct qm_portal *p, u32 offset, u32 val) { - __raw_writel(val, p->addr.ci + offset); + __raw_writel(cpu_to_be32(val), p->addr.ci + offset); } /* Cache Enabled Portal Access */ @@ -342,7 +342,7 @@ static inline void qm_cl_touch_ro(struct qm_portal *p, u32 offset) static inline u32 qm_ce_in(struct qm_portal *p, u32 offset) { - return __raw_readl(p->addr.ce + offset); + return be32_to_cpu(__raw_readl(p->addr.ce + offset)); } /* --- EQCR API --- */ |