Skip to content

at91_ether share stats/address setting with macb

Joachim Eastwood netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8net/macb: check all address registers setsdrivers/net/ethernet/cadence/macb.c+20 -150 replies
2/8net/macb: support reversed hw addrdrivers/net/ethernet/cadence/macb.c+18 -60 replies
3/8net/macb: export macb_set_hwaddr and macb_get_hwaddrdrivers/net/ethernet/cadence/macb.c drivers/net/ethernet/cadence/macb.h+7 -30 replies
4/8net/at91_ether: use macb functions for get/set hwaddrdrivers/net/ethernet/cadence/at91_ether.c+3 -1090 replies
5/8net/at91_ether: use stat function from macbdrivers/net/ethernet/cadence/at91_ether.c drivers/net/ethernet/cadence/macb.c drivers/net/ethernet/cadence/macb.h+11 -420 replies
6/8net/at91_ether: drop board_data private struct memberdrivers/net/ethernet/cadence/at91_ether.c drivers/net/ethernet/cadence/macb.h+1 -80 replies
7/8net/at91_ether: clean up print outsdrivers/net/ethernet/cadence/at91_ether.c+7 -100 replies
8/8net/at91_ether: fix comment and style issuesdrivers/net/ethernet/cadence/at91_ether.c+51 -600 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] at91_ether share stats/address setting with macb

Patch 1-2 add support for some special at91_ether features to macb address setting code. This will allow us to have one address setting function that can be shared.

Patch 4 removes the at91_ether address set/get code and make use of the exported functions for macb.

Patch 5 remove the at91_ether statistics functions and replace them with equivalent function from macb.

Patch 6 removes an unused member from the at91_ether/macb private struct.

Patch 7 is a clean up of the print outs from at91_ether.

Patch 8 is a misc clean up patch which fixes some comment and style issues.

Most of the code left in at91_ether now deal with configuration and DMA rx/tx which is hard to share with macb since this is specific for the IP block in AT91RM9200.

Next I'll work on adding PHY GPIO interrupt to the macb driver. at91_ether had this functionality before it began using mdio functions from macb.

Joachim Eastwood (8):
net/macb: check all address registers sets net/macb: support reversed hw addr
net/macb: export macb_set_hwaddr and macb_get_hwaddr net/at91_ether: use macb functions for get/set hwaddr net/at91_ether: use stat function from macb net/at91_ether: drop board_data private struct member net/at91_ether: clean up print outs net/at91_ether: fix comment and style issues

 drivers/net/ethernet/cadence/at91_ether.c | 289 +++++++-----------------------
 drivers/net/ethernet/cadence/macb.c       |  54 ++++--
 drivers/net/ethernet/cadence/macb.h       |  10 +-
 3 files changed, 109 insertions(+), 244 deletions(-)
Signature · 1 line
1.8.0