mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [net-next,v1, 0/1] Enable SERDES power up/down
@ 2020-04-20 15:42 Voon Weifeng
  2020-04-20 15:42 ` [net-next,v1, 1/1] net: stmmac: Enable SERDES power up/down sequence Voon Weifeng
  0 siblings, 1 reply; 3+ messages in thread
From: Voon Weifeng @ 2020-04-20 15:42 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

This patch is to enable Intel SERDES power up/down sequence. The SERDES
converts 8/10 bits data to SGMII signal.
1.Introduced 2 new BSP callbacks ->serdes_powerup() and ->serdes_powerdown().
2.The 2 new BSP callbacks is called in stmmac_dvr_probe() and
  stmmac_resume() for SERDER powerup; stmmac_dvr_remove() and
  stmmac_suspend() for SERDES powerdown.
3.Intel platform specific SERDES powerup and powerdown sequence functions
  are added in dwmac-intel.c.
4.Since configuring the SERDES is through mdio, mdio communication is
  needed to be up before powerup sequence. As for SERDES power-down
  sequence, it must be configured after all dma stop and before unregister
  the mdio bus.
5.New file dwmac-intel.h is created for register definition.

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

 .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 189 ++++++++++++++++++
 .../net/ethernet/stmicro/stmmac/dwmac-intel.h |  23 +++
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |  23 +++
 include/linux/stmmac.h                        |   2 +
 4 files changed, 237 insertions(+)
 create mode 100644 drivers/net/ethernet/stmicro/stmmac/dwmac-intel.h

-- 
2.17.1


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

end of thread, other threads:[~2020-04-21 22:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20 15:42 [net-next,v1, 0/1] Enable SERDES power up/down Voon Weifeng
2020-04-20 15:42 ` [net-next,v1, 1/1] net: stmmac: Enable SERDES power up/down sequence Voon Weifeng
2020-04-21 22:54   ` David Miller

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

Powered by JetHome