Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1356497 > unrolled thread

[PATCH net v2 0/4] Few mvneta fixes

Started byGregory CLEMENT <gregory.clement@free-electrons.com>
First post2016-03-12 18:50 +0100
Last post2016-03-14 20:50 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH net v2 0/4] Few mvneta fixes Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-03-12 18:50 +0100
    [PATCH net v2 4/4] net: mvneta: replace magic numbers by existing macros Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-03-12 18:50 +0100
    Re: [PATCH net v2 0/4] Few mvneta fixes David Miller <davem@davemloft.net> - 2016-03-14 20:50 +0100

#1356497 — [PATCH net v2 0/4] Few mvneta fixes

FromGregory CLEMENT <gregory.clement@free-electrons.com>
Date2016-03-12 18:50 +0100
Subject[PATCH net v2 0/4] Few mvneta fixes
Message-ID<rbVPQ-1dq-5@gated-at.bofh.it>
Hi David,

In this second version I split the last patch in two parts as
requested.

For the record the initial cover letter was:
"here is a patch set of few fixes. Without the first one, a kernel
configured with debug features ended to hang when the driver is built
as a module and is removed. This is quite is annoying for debugging!

The second patch fix a forgotten flag at the initial submission of the
driver.

The third patch is only really a cosmetic one so I have no problem to
not apply it for 4.5 and wait for 4.6.

I really would like to see the first one applied for 4.5 and for the
second I let you judge if it something needed for now or that should
wait the next release."

Thanks,

Gregory


Dmitri Epshtein (3):
  net: mvneta: enable change MAC address when interface is up
  net: mvneta: fix error messages in mvneta_port_down function
  net: mvneta: replace magic numbers by existing macros

Gregory CLEMENT (1):
  net: mvneta: Fix spinlock usage

 drivers/net/ethernet/marvell/mvneta.c | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)

-- 
2.5.0

[toc] | [next] | [standalone]


#1356498 — [PATCH net v2 4/4] net: mvneta: replace magic numbers by existing macros

FromGregory CLEMENT <gregory.clement@free-electrons.com>
Date2016-03-12 18:50 +0100
Subject[PATCH net v2 4/4] net: mvneta: replace magic numbers by existing macros
Message-ID<rbVPR-1dq-35@gated-at.bofh.it>
In reply to#1356497
From: Dmitri Epshtein <dima@marvell.com>

Some literal values are actually already defined by macros, so let's use
them.

[gregory.clement@free-electrons.com: split intial commit in two
individual changes]
Signed-off-by: Dmitri Epshtein <dima@marvell.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
---
 drivers/net/ethernet/marvell/mvneta.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index 58ad36876e8b..225d933259c0 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -880,7 +880,7 @@ static void mvneta_port_down(struct mvneta_port *pp)
 		mdelay(1);
 
 		val = mvreg_read(pp, MVNETA_RXQ_CMD);
-	} while (val & 0xff);
+	} while (val & MVNETA_RXQ_ENABLE_MASK);
 
 	/* Stop Tx port activity. Check port Tx activity. Issue stop
 	 * command for active channels only
@@ -905,7 +905,7 @@ static void mvneta_port_down(struct mvneta_port *pp)
 		/* Check TX Command reg that all Txqs are stopped */
 		val = mvreg_read(pp, MVNETA_TXQ_CMD);
 
-	} while (val & 0xff);
+	} while (val & MVNETA_TXQ_ENABLE_MASK);
 
 	/* Double check to verify that TX FIFO is empty */
 	count = 0;
-- 
2.5.0

[toc] | [prev] | [next] | [standalone]


#1357580

FromDavid Miller <davem@davemloft.net>
Date2016-03-14 20:50 +0100
Message-ID<rcGF4-8ey-17@gated-at.bofh.it>
In reply to#1356497
From: Gregory CLEMENT <gregory.clement@free-electrons.com>
Date: Sat, 12 Mar 2016 18:44:16 +0100

> In this second version I split the last patch in two parts as
> requested.
> 
> For the record the initial cover letter was:
> "here is a patch set of few fixes. Without the first one, a kernel
> configured with debug features ended to hang when the driver is built
> as a module and is removed. This is quite is annoying for debugging!
> 
> The second patch fix a forgotten flag at the initial submission of the
> driver.
> 
> The third patch is only really a cosmetic one so I have no problem to
> not apply it for 4.5 and wait for 4.6.
> 
> I really would like to see the first one applied for 4.5 and for the
> second I let you judge if it something needed for now or that should
> wait the next release."

Series applied and patches #1 and #2 queued up for -stable, thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web