public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Add Rust Rockchip PHY driver
@ 2024-02-01 18:06 Christina Quast
  2024-02-01 18:06 ` [PATCH v2 1/3] DONOTMERGE: rust: prelude: add bit function Christina Quast
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Christina Quast @ 2024-02-01 18:06 UTC (permalink / raw)
  To: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng,
	Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg,
	Alice Ryhl, FUJITA Tomonori, Trevor Gross, Andrew Lunn,
	Heiner Kallweit, Russell King, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Heiko Stuebner
  Cc: rust-for-linux, linux-kernel, netdev, linux-arm-kernel,
	linux-rockchip, Christina Quast

Based on the example shown in drivers/net/phy/ax88796b_rust.rs, I ported
the rockchip phy driver to Rust. The code in drivers/net/phy/rockchip.c
was basically rewritten in Rust.  The patchset includes changes to
phy.rs, adding more struct driver functions for the abstraction with
Rust.

The driver was not tested on real hardware, because I do not have a
board with this phy, and I would appreciate it if somebody could try
out the driver on their board.

Signed-off-by: Christina Quast <contact@christina-quast.de>
---
Christina Quast (3):
      DONOTMERGE: rust: prelude: add bit function
      rust: phy: add some phy_driver and genphy_ functions
      net: phy: add Rust Rockchip PHY driver

 drivers/net/phy/Kconfig          |   8 +++
 drivers/net/phy/Makefile         |   4 ++
 drivers/net/phy/rockchip_rust.rs | 131 +++++++++++++++++++++++++++++++++++++++
 rust/kernel/net/phy.rs           |  31 +++++++++
 rust/kernel/prelude.rs           |  16 +++++
 5 files changed, 190 insertions(+)
---
base-commit: 6613476e225e090cc9aad49be7fa504e290dd33d
change-id: 20240201-rockchip-rust-phy_depend-681db4707777

Best regards,
-- 
Christina Quast <contact@christina-quast.de>


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2024-02-06 23:01 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-01 18:06 [PATCH v2 0/3] Add Rust Rockchip PHY driver Christina Quast
2024-02-01 18:06 ` [PATCH v2 1/3] DONOTMERGE: rust: prelude: add bit function Christina Quast
2024-02-01 18:34   ` Miguel Ojeda
2024-02-01 18:06 ` [PATCH v2 2/3] rust: phy: add some phy_driver and genphy_ functions Christina Quast
2024-02-01 20:02   ` Trevor Gross
2024-02-01 18:07 ` [PATCH v2 3/3] net: phy: add Rust Rockchip PHY driver Christina Quast
2024-02-01 18:23   ` Greg KH
2024-02-01 20:17     ` Dragan Simic
2024-02-01 21:29     ` Andrew Lunn
2024-02-01 23:12       ` Miguel Ojeda
2024-02-01 21:06   ` Trevor Gross
2024-02-06 19:19     ` Christina Quast
2024-02-06 21:30       ` Trevor Gross
2024-02-06 23:00         ` Andrew Lunn
2024-02-01 21:33 ` [PATCH v2 0/3] Add " Andrew Lunn

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