summaryrefslogtreecommitdiffstats
path: root/linux/drivers/soc/fsl/qbman/qman.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-05-19 09:41:16 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-10-23 09:24:06 +0200
commit1908686c310661f9f5a4766887280e9b2f702362 (patch)
treeff2596ea03fdd5265f33a6d898028b5851fd06f1 /linux/drivers/soc/fsl/qbman/qman.c
parentdpaa: Implement GENMASK() similar to Linux (diff)
downloadrtems-libbsd-1908686c310661f9f5a4766887280e9b2f702362.tar.bz2
soc/qman: Do not enable stashing without PAMU
Do not enable stashing in the QMan software portal configuration (QCSPi_CFG[RE, SE]) in case the PAMU support is not configured. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
Diffstat (limited to '')
-rw-r--r--linux/drivers/soc/fsl/qbman/qman.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/soc/fsl/qbman/qman.c b/linux/drivers/soc/fsl/qbman/qman.c
index de3fc7b2..bb6b6b86 100644
--- a/linux/drivers/soc/fsl/qbman/qman.c
+++ b/linux/drivers/soc/fsl/qbman/qman.c
@@ -607,7 +607,9 @@ static inline int qm_dqrr_init(struct qm_portal *portal,
((max_fill & (QM_DQRR_SIZE - 1)) << 20) | /* DQRR_MF */
((dmode & 1) << 18) | /* DP */
((cmode & 3) << 16) | /* DCM */
+#ifndef CONFIG_FSL_PAMU
0xa0 | /* RE+SE */
+#endif
(0 ? 0x40 : 0) | /* Ignore RP */
(0 ? 0x10 : 0); /* Ignore SP */
qm_out(portal, QM_REG_CFG, cfg);