ec79adc56eda153cf314ad398dc913ea194433a6
[openwrt/staging/ynezz.git] /
1 From 9b4ae951eeabc09fda80e446434ef8f03849522e Mon Sep 17 00:00:00 2001
2 From: Roy Pledge <roy.pledge@nxp.com>
3 Date: Fri, 22 Jun 2018 15:47:07 -0400
4 Subject: [PATCH] staging/fsl_qbman: Consume all frames in DQRR during init
5
6 The qm_dqrr_cdc_consume_n() function takes a bitmask, not an index.
7
8 Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
9 ---
10 drivers/staging/fsl_qbman/qman_low.h | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 --- a/drivers/staging/fsl_qbman/qman_low.h
14 +++ b/drivers/staging/fsl_qbman/qman_low.h
15 @@ -658,7 +658,7 @@ static inline int qm_dqrr_init(struct qm
16 qm_dqrr_cce_consume(portal, dqrr->fill);
17 break;
18 case qm_dqrr_cdc:
19 - qm_dqrr_cdc_consume_n(portal, (QM_DQRR_SIZE - 1));
20 + qm_dqrr_cdc_consume_n(portal, (1<<QM_DQRR_SIZE) - 1);
21 break;
22 default:
23 DPA_ASSERT(0);