mbox series

[v6,net,0/4] Fix broken link on Xilinx's AXI Ethernet in SGMII mode

Message ID 20220328123238.2569322-1-andy.chiu@sifive.com (mailing list archive)
Headers show
Series Fix broken link on Xilinx's AXI Ethernet in SGMII mode | expand

Message

Andy Chiu March 28, 2022, 12:32 p.m. UTC
The Ethernet driver use phy-handle to reference the PCS/PMA PHY. This
could be a problem if one wants to configure an external PHY via phylink,
since it use the same phandle to get the PHY. To fix this, introduce a
dedicated pcs-handle to point to the PCS/PMA PHY and deprecate the use
of pointing it with phy-handle. A similar use case of pcs-handle can be
seen on dpaa2 as well.

--- patch v5 ---
 - Re-applying the v4 patch on the net tree.
 - Describes the pcs-handle DT binding at ethernet-controller level.
--- patch v6 ---
 - Remove "preferrably" to clearify usage of pcs_handle.

Andy Chiu (4):
  net: axienet: setup mdio unconditionally
  net: axienet: factor out phy_node in struct axienet_local
  dt-bindings: net: add pcs-handle attribute
  net: axiemac: use a phandle to reference pcs_phy

 .../bindings/net/ethernet-controller.yaml     |  6 ++++
 .../bindings/net/xilinx_axienet.txt           |  8 ++++-
 drivers/net/ethernet/xilinx/xilinx_axienet.h  |  2 --
 .../net/ethernet/xilinx/xilinx_axienet_main.c | 33 ++++++++++---------
 4 files changed, 31 insertions(+), 18 deletions(-)

Comments

Jakub Kicinski March 28, 2022, 11:58 p.m. UTC | #1
On Mon, 28 Mar 2022 20:32:34 +0800 Andy Chiu wrote:
> The Ethernet driver use phy-handle to reference the PCS/PMA PHY. This
> could be a problem if one wants to configure an external PHY via phylink,
> since it use the same phandle to get the PHY. To fix this, introduce a
> dedicated pcs-handle to point to the PCS/PMA PHY and deprecate the use
> of pointing it with phy-handle. A similar use case of pcs-handle can be
> seen on dpaa2 as well.
> 
> --- patch v5 ---
>  - Re-applying the v4 patch on the net tree.
>  - Describes the pcs-handle DT binding at ethernet-controller level.
> --- patch v6 ---
>  - Remove "preferrably" to clearify usage of pcs_handle.

This set not longer applies, please rebase on latest net/master.
Andy Chiu March 29, 2022, 2:49 a.m. UTC | #2
> This set not longer applies, please rebase on latest net/master.
Thanks for reminding me. I have rebased it on the latest net/master
and submitted a v7 patch for that.

Andy