netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] net: phy: marvell10g: Add host speed setting by an ethernet driver
@ 2022-10-19  8:50 Yoshihiro Shimoda
  2022-10-19  8:50 ` [PATCH RFC 1/3] net: mdio: Add of_phy_connect_with_host_param() Yoshihiro Shimoda
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Yoshihiro Shimoda @ 2022-10-19  8:50 UTC (permalink / raw)
  To: linux, kabel, andrew, hkallweit1, davem, edumazet, kuba, pabeni
  Cc: netdev, linux-renesas-soc, Yoshihiro Shimoda

R-Car S4-8 environment board requires to change the host interface
as SGMII and the host speed as 1000 Mbps because the strap pin was
other mode, but the SoC/board cannot work on that mode. Also, after
the SoC initialized the SERDES once, we cannot re-initialized it
because the initialized procedure seems all black magic...

To communicate between R-Car S4-8 (host MAC) and marvell PHY,
this patch series adds a new function of_phy_connect_with_host_param()
to set host parameters (host_interfaces and host_speed), and
rswitch driver sets the paramter. After that, the marvell10g can
check the paramters and set specific registers for it.

This patch series is based on next-20221017 and the following patches
which are not upstreamed yet:
https://lore.kernel.org/all/20221019083518.933070-1-yoshihiro.shimoda.uh@renesas.com/T/#m1c3de735de018b5cb90cb3720056ac1497112b36

I'm not sure whether this is a correct way or not. So, I marked
this patch series as RFC.

Yoshihiro Shimoda (3):
  net: mdio: Add of_phy_connect_with_host_param()
  net: phy: marvell10g: Add host interface speed configuration
  net: renesas: rswitch: Pass host parameters to phydev

 drivers/net/ethernet/renesas/rswitch.c | 13 ++++++--
 drivers/net/mdio/of_mdio.c             | 42 ++++++++++++++++++++++++++
 drivers/net/phy/marvell10g.c           | 23 ++++++++++++++
 include/linux/of_mdio.h                |  7 +++++
 include/linux/phy.h                    |  8 +++++
 5 files changed, 91 insertions(+), 2 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2022-10-20  1:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-19  8:50 [PATCH RFC 0/3] net: phy: marvell10g: Add host speed setting by an ethernet driver Yoshihiro Shimoda
2022-10-19  8:50 ` [PATCH RFC 1/3] net: mdio: Add of_phy_connect_with_host_param() Yoshihiro Shimoda
2022-10-19  8:50 ` [PATCH RFC 2/3] net: phy: marvell10g: Add host interface speed configuration Yoshihiro Shimoda
2022-10-19 10:48   ` Marek Behún
2022-10-19 10:55     ` Marek Behún
2022-10-19 11:58     ` Russell King (Oracle)
2022-10-20  1:26       ` Yoshihiro Shimoda
2022-10-20  1:15     ` Yoshihiro Shimoda
2022-10-19  8:50 ` [PATCH RFC 3/3] net: renesas: rswitch: Pass host parameters to phydev Yoshihiro Shimoda
2022-10-19 10:41   ` Marek Behún
2022-10-20  0:40     ` Yoshihiro Shimoda
2022-10-19 10:44 ` [PATCH RFC 0/3] net: phy: marvell10g: Add host speed setting by an ethernet driver Marek Behún
2022-10-19 11:39   ` Russell King (Oracle)
2022-10-20  1:20     ` Yoshihiro Shimoda
2022-10-20  1:04   ` Yoshihiro Shimoda

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