All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: mvneta: fix enable of all initialized RXQs
@ 2018-03-30 10:05 Gregory CLEMENT
  2018-03-30 10:22 ` Thomas Petazzoni
  2018-03-30 18:28 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Gregory CLEMENT @ 2018-03-30 10:05 UTC (permalink / raw)
  To: David S. Miller, linux-kernel, netdev
  Cc: Thomas Petazzoni, Antoine Tenart, Miquèl Raynal,
	Maxime Chevallier, stefanc, ymarkman, Yelena Krivosheev,
	Gregory CLEMENT

From: Yelena Krivosheev <yelena@marvell.com>

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>
---
 drivers/net/ethernet/marvell/mvneta.c | 1 +
 1 file changed, 1 insertion(+)

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];
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: mvneta: fix enable of all initialized RXQs
  2018-03-30 10:05 [PATCH] net: mvneta: fix enable of all initialized RXQs Gregory CLEMENT
@ 2018-03-30 10:22 ` Thomas Petazzoni
  2018-03-30 18:28 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2018-03-30 10:22 UTC (permalink / raw)
  To: Gregory CLEMENT
  Cc: David S. Miller, linux-kernel, netdev, Antoine Tenart,
	Miquèl Raynal, Maxime Chevallier, stefanc, ymarkman,
	Yelena Krivosheev

Hello,

On Fri, 30 Mar 2018 12:05:31 +0200, Gregory CLEMENT wrote:
> From: Yelena Krivosheev <yelena@marvell.com>
> 
> 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>

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] net: mvneta: fix enable of all initialized RXQs
  2018-03-30 10:05 [PATCH] net: mvneta: fix enable of all initialized RXQs Gregory CLEMENT
  2018-03-30 10:22 ` Thomas Petazzoni
@ 2018-03-30 18:28 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2018-03-30 18:28 UTC (permalink / raw)
  To: gregory.clement
  Cc: linux-kernel, netdev, thomas.petazzoni, antoine.tenart,
	miquel.raynal, maxime.chevallier, stefanc, ymarkman, yelena

From: Gregory CLEMENT <gregory.clement@bootlin.com>
Date: Fri, 30 Mar 2018 12:05:31 +0200

> From: Yelena Krivosheev <yelena@marvell.com>
> 
> 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>

Applied, thank you.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-30 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-30 10:05 [PATCH] net: mvneta: fix enable of all initialized RXQs Gregory CLEMENT
2018-03-30 10:22 ` Thomas Petazzoni
2018-03-30 18:28 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.