summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYelena Krivosheev <yelena@marvell.com>2018-03-30 12:05:31 +0200
committerDavid S. Miller <davem@davemloft.net>2018-03-30 14:27:47 -0400
commite81b5e01c14add8395dfba7130f8829206bb507d (patch)
tree86489181e1ee33a0dc767d55b67129d7a06ad673
parentb6cdbc85234b072340b8923e69f49ec293f905dc (diff)
downloadlinux-e81b5e01c14add8395dfba7130f8829206bb507d.tar.bz2
net: mvneta: fix enable of all initialized RXQs
In mvneta_port_up() we enable relevant RX and TX port queues by write queues bit map to an appropriate register. q_map must be ZERO in the beginning of this process. Signed-off-by: Yelena Krivosheev <yelena@marvell.com> Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/marvell/mvneta.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index 25e9a551cc8c..3f6fb635738c 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -1132,6 +1132,7 @@ static void mvneta_port_up(struct mvneta_port *pp)
}
mvreg_write(pp, MVNETA_TXQ_CMD, q_map);
+ q_map = 0;
/* Enable all initialized RXQs. */
for (queue = 0; queue < rxq_number; queue++) {
struct mvneta_rx_queue *rxq = &pp->rxqs[queue];