linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/4] net: mvpp2: fix the mac address retrieval logic
@ 2017-08-24  9:46 Antoine Tenart
  2017-08-24  9:46 ` [PATCH net-next 1/4] net: mvpp2: fix the mac address used when using PPv2.2 Antoine Tenart
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Antoine Tenart @ 2017-08-24  9:46 UTC (permalink / raw)
  To: davem, thomas.petazzoni
  Cc: Antoine Tenart, andrew, gregory.clement, nadavh, linux,
	linux-kernel, mw, stefanc, netdev

Hi all,

The MAC address retrieval logic was broken and when using the PPv2
driver on PPv2.2 engines I ended up using the same mac address on all
ports. This series of patches fixes this, and also tackle a possible bug
when defining the mac address in the device tree.

To fix this in a nice way I ended up using a dedicated function to
handle the mac retrieval logic. This can be hard to backport into stable
kernels. This is why I also made a quick fix which is easy to backport
(patch 1/14), to tackle down the PPv2.2 mac retrieval bug. Let me know
if this approach is the proper way to handle this or if I should do
something else.

Thanks!
Antoine

Fixes: 2697582144dd ("net: mvpp2: handle misc PPv2.1/PPv2.2 differences")

Antoine Tenart (4):
  net: mvpp2: fix the mac address used when using PPv2.2
  net: mvpp2: move the mac retrieval/copy logic into its own function
  net: mvpp2: fix use of the random mac address for PPv2.2
  net: mvpp2: fallback using h/w and random mac if the dt one isn't
    valid

 drivers/net/ethernet/marvell/mvpp2.c | 48 ++++++++++++++++++++++--------------
 1 file changed, 30 insertions(+), 18 deletions(-)

-- 
2.13.5

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

end of thread, other threads:[~2017-08-25 13:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24  9:46 [PATCH net-next 0/4] net: mvpp2: fix the mac address retrieval logic Antoine Tenart
2017-08-24  9:46 ` [PATCH net-next 1/4] net: mvpp2: fix the mac address used when using PPv2.2 Antoine Tenart
2017-08-24  9:46 ` [PATCH net-next 2/4] net: mvpp2: move the mac retrieval/copy logic into its own function Antoine Tenart
2017-08-24  9:46 ` [PATCH net-next 3/4] net: mvpp2: fix use of the random mac address for PPv2.2 Antoine Tenart
2017-08-24  9:46 ` [PATCH net-next 4/4] net: mvpp2: fallback using h/w and random mac if the dt one isn't valid Antoine Tenart
2017-08-25  4:46 ` [PATCH net-next 0/4] net: mvpp2: fix the mac address retrieval logic David Miller
2017-08-25 13:58   ` Antoine Tenart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).