public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH net-next v5 0/5] net: renesas: rswitch: Modify initialization for SERDES and PHY
@ 2023-02-01 13:14 Yoshihiro Shimoda
  2023-02-01 13:14 ` [PATCH net-next v5 1/5] net: renesas: rswitch: Simplify struct phy * handling Yoshihiro Shimoda
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Yoshihiro Shimoda @ 2023-02-01 13:14 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni
  Cc: netdev, linux-renesas-soc, Yoshihiro Shimoda

- My platform has the 88x2110.
- The MACTYPE setting of strap pin on the platform is SXGMII.
- However, we realized that the SoC cannot communicate the PHY with SXGMII
  because of mismatching hardware specification.
- We have a lot of boards which mismatch the MACTYPE setting.

So, I would like to change the MACTYPE as SGMII by software for the platform.

The patch [1/5] sets phydev->host_interfaces by phylink for Marvell PHY
driver (marvell10g) to initialize the MACTYPE.

- The patch [1/5] siplifies the rswitch driver.
- The patch [2/5] converts to phy_device from phylink.
- The patch [3/5] sets phydev->host_interfaces from this driver without
  any new functions of phylib.
- The patch [4/5] adds phy_power_on() calling to initialize the Ethernet
  SERDES PHY driver (r8a779f0-eth-serdes) for each channel.
- The patch [5/5] adds "max-speed" handling.

Changes from v4:
https://lore.kernel.org/all/20230127142621.1761278-1-yoshihiro.shimoda.uh@renesas.com/
 - No modification of phylink API.
 - Convert to phylib instead of phylink.
 - Add "max-speed" handling.

Changes from v3:
https://lore.kernel.org/all/20230127014812.1656340-1-yoshihiro.shimoda.uh@renesas.com/
 - Keep a pointer of "port" and more simplify the code.

Yoshihiro Shimoda (5):
  net: renesas: rswitch: Simplify struct phy * handling
  net: renesas: rswitch: Convert to phy_device
  net: renesas: rswitch: Add host_interfaces setting
  net: renesas: rswitch: Add phy_power_{on,off}() calling
  net: renesas: rswitch: Add "max-speed" handling

 drivers/net/ethernet/renesas/rswitch.c | 231 ++++++++++++-------------
 drivers/net/ethernet/renesas/rswitch.h |   4 +-
 2 files changed, 111 insertions(+), 124 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2023-02-03  9:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-01 13:14 [PATCH net-next v5 0/5] net: renesas: rswitch: Modify initialization for SERDES and PHY Yoshihiro Shimoda
2023-02-01 13:14 ` [PATCH net-next v5 1/5] net: renesas: rswitch: Simplify struct phy * handling Yoshihiro Shimoda
2023-02-01 13:14 ` [PATCH net-next v5 2/5] net: renesas: rswitch: Convert to phy_device Yoshihiro Shimoda
2023-02-01 13:14 ` [PATCH net-next v5 3/5] net: renesas: rswitch: Add host_interfaces setting Yoshihiro Shimoda
2023-02-01 13:14 ` [PATCH net-next v5 4/5] net: renesas: rswitch: Add phy_power_{on,off}() calling Yoshihiro Shimoda
2023-02-01 13:14 ` [PATCH net-next v5 5/5] net: renesas: rswitch: Add "max-speed" handling Yoshihiro Shimoda
2023-02-03  9:40 ` [PATCH net-next v5 0/5] net: renesas: rswitch: Modify initialization for SERDES and PHY patchwork-bot+netdevbpf

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