| From: |
| FUJITA Tomonori <fujita.tomonori-AT-gmail.com> |
| To: |
| rust-for-linux-AT-vger.kernel.org |
| Subject: |
| [RFC PATCH v3 0/3] Rust abstractions for network PHY drivers |
| Date: |
| Fri, 29 Sep 2023 07:55:15 +0900 |
| Message-ID: |
| <20230928225518.2197768-1-fujita.tomonori@gmail.com> |
| Cc: |
| andrew-AT-lunn.ch, tmgross-AT-umich.edu, miguel.ojeda.sandonis-AT-gmail.com, benno.lossin-AT-proton.me, wedsonaf-AT-gmail.com |
| Archive-link: |
| Article |
This patchset adds Rust abstractions for network PHY drivers. It
doesn't fully cover the C APIs for PHY drivers yet but I think that
it's already useful. I implement two PHY drivers (Asix AX88772A PHYs
and Realtek Generic FE-GE). Seems they work well with real hardware.
Thanks for lots of feedback on v2!
There is no major changes from v2; cleanups and comment improvement.
v1:
https://lwn.net/ml/rust-for-linux/20230913133609.1668758-...
v2:
https://lwn.net/ml/rust-for-linux/20230924064902.1339662-...
FUJITA Tomonori (3):
rust: core abstractions for network PHY drivers
MAINTAINERS: add Rust PHY abstractions to the ETHERNET PHY LIBRARY
net: phy: add Rust Asix PHY driver
MAINTAINERS | 2 +
drivers/net/phy/Kconfig | 7 +
drivers/net/phy/Makefile | 6 +-
drivers/net/phy/ax88796b_rust.rs | 129 ++++++
rust/Makefile | 1 +
rust/bindings/bindings_helper.h | 3 +
rust/kernel/lib.rs | 3 +
rust/kernel/net.rs | 6 +
rust/kernel/net/phy.rs | 706 +++++++++++++++++++++++++++++++
rust/uapi/uapi_helper.h | 1 +
10 files changed, 863 insertions(+), 1 deletion(-)
create mode 100644 drivers/net/phy/ax88796b_rust.rs
create mode 100644 rust/kernel/net.rs
create mode 100644 rust/kernel/net/phy.rs
base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
--
2.34.1