[rtems-libbsd commit] soc/qman: Do not enable stashing without PAMU
Sebastian Huber
sebh at rtems.org
Mon Oct 23 07:27:51 UTC 2017
Module: rtems-libbsd
Branch: master
Commit: 1908686c310661f9f5a4766887280e9b2f702362
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=1908686c310661f9f5a4766887280e9b2f702362
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Fri May 19 09:41:16 2017 +0200
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 at embedded-brains.de>
---
linux/drivers/soc/fsl/qbman/qman.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/linux/drivers/soc/fsl/qbman/qman.c b/linux/drivers/soc/fsl/qbman/qman.c
index de3fc7b..bb6b6b8 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);
More information about the vc
mailing list