linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 0/2] net: macb: Wake-on-Lan magic packet GEM and MACB handling
@ 2020-07-13 10:05 nicolas.ferre
  2020-07-13 10:05 ` [PATCH v6 1/2] net: macb: WoL support for GEM type of Ethernet controller nicolas.ferre
  2020-07-13 10:05 ` [PATCH v6 2/2] net: macb: Add WoL interrupt support for MACB " nicolas.ferre
  0 siblings, 2 replies; 5+ messages in thread
From: nicolas.ferre @ 2020-07-13 10:05 UTC (permalink / raw)
  To: linux, linux-arm-kernel, netdev, Claudiu Beznea, harini.katakam,
	f.fainelli
  Cc: antoine.tenart, Alexandre Belloni, linux-kernel, David S. Miller

From: Nicolas Ferre <nicolas.ferre@microchip.com>

Hi,

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,
  Nicolas

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:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=f9f41e3db40ee8d61b427d4d88c7365d968052a9

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

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

-- 
2.27.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2020-07-15  8:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-13 10:05 [PATCH v6 0/2] net: macb: Wake-on-Lan magic packet GEM and MACB handling nicolas.ferre
2020-07-13 10:05 ` [PATCH v6 1/2] net: macb: WoL support for GEM type of Ethernet controller nicolas.ferre
2020-07-13 15:45   ` Claudiu.Beznea
2020-07-15  8:10     ` Nicolas.Ferre
2020-07-13 10:05 ` [PATCH v6 2/2] net: macb: Add WoL interrupt support for MACB " nicolas.ferre

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).