Skip to content

net: phy: add Rust reference driver for ET1011C

Artem Lytkin lkml netdev rust-for-linux 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesIn review
  2. v23 patches 3 repliesSuperseded
  3. v12 patches 1 replySuperseded

Changes in v3 from the cover letter

- Replaced custom config_aneg with soft_reset callback using genphy_soft_reset(), which properly polls the self-clearing BMCR_RESET bit and handles autoneg/forced mode (Andrew Lunn)
- Removed all BMCR constant definitions (no longer needed)
- Dropped genphy_config_aneg() abstraction patch (no longer used)

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2rust: net: phy: add speed() getter to Devicerust/kernel/net/phy.rs+8 -00 replies
2/2net: phy: add Rust reference driver for ET1011Cdrivers/net/phy/Kconfig drivers/net/phy/Makefile drivers/net/phy/et1011c_rust.rs+83 -13 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH net-next v3 0/2] net: phy: add Rust reference driver for ET1011C

This series adds a Rust reference driver for the LSI ET1011C PHY, following the pattern established by the existing Rust Asix PHY driver (ax88796b_rust.rs).

Patch 1 adds a speed() getter to phy::Device, needed to detect speed changes in read_status.

Patch 2 adds the Rust ET1011C driver itself, implementing soft_reset and read_status callbacks.

Changes since v2:
- Replaced custom config_aneg with soft_reset callback using genphy_soft_reset(), which properly polls the self-clearing BMCR_RESET bit and handles autoneg/forced mode (Andrew Lunn)
- Removed all BMCR constant definitions (no longer needed)
- Dropped genphy_config_aneg() abstraction patch (no longer used)

Changes since v1:
- Added speed() getter to properly detect speed changes (Andrew Lunn)
- read_status now only reconfigures registers when speed changes, matching the C driver behavior (Andrew Lunn)

Artem Lytkin (2):
rust: net: phy: add speed() getter to Device
net: phy: add Rust reference driver for ET1011C

 drivers/net/phy/Kconfig         |  9 +++++
 drivers/net/phy/Makefile        |  6 ++-
 drivers/net/phy/et1011c_rust.rs | 69 +++++++++++++++++++++++++++++++++
 rust/kernel/net/phy.rs          |  8 ++++
 4 files changed, 91 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/phy/et1011c_rust.rs
Signature · 1 line
2.43.0