mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC,net-next,v2, 0/1] Enable SERDES power up/down
@ 2020-04-09 15:48 Voon Weifeng
  2020-04-09 15:48 ` [RFC,net-next,v2, 1/1] net: stmmac: Enable SERDES power up/down sequence Voon Weifeng
  0 siblings, 1 reply; 4+ messages in thread
From: Voon Weifeng @ 2020-04-09 15:48 UTC (permalink / raw)
  To: David S . Miller, Maxime Coquelin
  Cc: netdev, linux-kernel, Jose Abreu, Giuseppe Cavallaro,
	Andrew Lunn, Alexandre Torgue, Ong Boon Leong, Voon Weifeng

Changes from v1:
1.Only the configuration of the SERDES logic is kept, other SW acrh has
  changed.
2.Removed the proposed new files intel_serdes.c and intel_serdes.h and
  moved the SERDES configuration logic to dwmac-intel.c and dwmac_intel.h.
3.Added 2 BSP callbacks ->serdes_powerup() and ->serdes_powerup().
4.The suggested 2 new BSP callbacks is called in stmmac_dvr_probe() and
  stmmac_dvr_remove().

This platform specific SERDES configuration not able separate 100% cleanly
from the main dwmac logic because mdio communication is needed for
configuring the SERDES power-up sequence. As for SERDES power-down
sequence, it must be configured after all dma stop and before unregister
the mdio bus.
This implementation should have the least changes on the
main dwmac logic but still serve the purpose for providing BSP callback
for any platform that needs to configure SERDES.

Voon Weifeng (1):
  net: stmmac: Enable SERDES power up/down sequence

 .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 171 ++++++++++++++++++
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |  10 +
 include/linux/stmmac.h                        |   3 +
 3 files changed, 184 insertions(+)

-- 
2.17.1


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

end of thread, other threads:[~2020-04-14 16:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-09 15:48 [RFC,net-next,v2, 0/1] Enable SERDES power up/down Voon Weifeng
2020-04-09 15:48 ` [RFC,net-next,v2, 1/1] net: stmmac: Enable SERDES power up/down sequence Voon Weifeng
2020-04-13 14:29   ` Jose Abreu
2020-04-14 16:44     ` Voon, Weifeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®