[v6,0/2] net: macb: Wake-on-Lan magic packet GEM and MACB handling
mbox series

Message ID cover.1594632220.git.nicolas.ferre@microchip.com
Headers show
  • net: macb: Wake-on-Lan magic packet GEM and MACB handling
Related show


Nicolas Ferre July 13, 2020, 10:05 a.m. UTC
From: Nicolas Ferre <nicolas.ferre@microchip.com>


Here is the second part of support for WoL magic-packet on the current macb driver. This one
is addressing the bulk of the feature and is based on current net-next/master.

MACB and GEM code must co-exist and as they don't share exactly the same
register layout, I had to specialize a bit the suspend/resume paths and plug a
specific IRQ handler in order to avoid overloading the "normal" IRQ hot path.

These changes were tested on both sam9x60 which embeds a MACB+FIFO controller
and sama5d2 which has a GEM+packet buffer type of controller.

Best regards,

Changes in v6:
- rebase on net-next/master now that the "fixes" patches of the series are
  merged in both net and net-next.
- GEM addition and MACB update to finish the support of WoL magic-packet on the
  two revisions of the controller.

These 2 patches were last posted in v3 series.

History of previous changes already added to git commit message here:

Nicolas Ferre (2):
  net: macb: WoL support for GEM type of Ethernet controller
  net: macb: Add WoL interrupt support for MACB type of Ethernet

 drivers/net/ethernet/cadence/macb.h      |   3 +
 drivers/net/ethernet/cadence/macb_main.c | 188 +++++++++++++++++++----
 2 files changed, 164 insertions(+), 27 deletions(-)