From 1908686c310661f9f5a4766887280e9b2f702362 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 May 2017 09:41:16 +0200 Subject: 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 --- linux/drivers/soc/fsl/qbman/qman.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'linux') 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); -- cgit v1.2.3