aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/layerscape/patches-5.4/701-net-0069-sdk_dpaa-ceetm-reset-the-wbfs-groups-and-priorities-.patch
blob: fb6ac756d5c77e4480acca0ac1b15073b1bc9398 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From 3aa80007715ecfd944e02029b59fec5c74c8598e Mon Sep 17 00:00:00 2001
From: Camelia Groza <camelia.groza@nxp.com>
Date: Wed, 30 May 2018 15:04:37 +0300
Subject: [PATCH] sdk_dpaa: ceetm: reset the wbfs groups and priorities on
 teardown

Signed-off-by: Camelia Groza <camelia.groza@nxp.com>
---
 drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c | 4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
+++ b/drivers/net/ethernet/freescale/sdk_dpaa/dpaa_eth_ceetm.c
@@ -491,6 +491,10 @@ static void ceetm_destroy(struct Qdisc *
 		break;
 
 	case CEETM_WBFS:
+		/* Reset the WBFS groups and priorities */
+		if (priv->wbfs.ch)
+			qman_ceetm_channel_set_group(priv->wbfs.ch, 1, 0, 0);
+
 		if (priv->wbfs.parent)
 			priv->wbfs.parent->prio.child = NULL;
 		break;