Re: [PATCH net-next v3 3/3] net: phy: add Rust Asix PHY driver
From: Greg KH <gregkh@linuxfoundation.org>
Date: 2023-10-09 10:10:13
Also in:
rust-for-linux
On Mon, Oct 09, 2023 at 10:39:12AM +0900, FUJITA Tomonori wrote:
quoted hunk ↗ jump to hunk
This is the Rust implementation of drivers/net/phy/ax88796b.c. The features are equivalent. You can choose C or Rust versionon kernel configuration. Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com> --- drivers/net/phy/Kconfig | 7 ++ drivers/net/phy/Makefile | 6 +- drivers/net/phy/ax88796b_rust.rs | 129 +++++++++++++++++++++++++++++++ rust/uapi/uapi_helper.h | 2 + 4 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 drivers/net/phy/ax88796b_rust.rsdiff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig index 421d2b62918f..0317be180ac2 100644 --- a/drivers/net/phy/Kconfig +++ b/drivers/net/phy/Kconfig@@ -107,6 +107,13 @@ config AX88796B_PHY Currently supports the Asix Electronics PHY found in the X-Surf 100 AX88796B package. +config AX88796B_RUST_PHY + bool "Rust version driver for Asix PHYs" + depends on RUST_PHYLIB_BINDINGS && AX88796B_PHY + help + Uses the Rust version driver for Asix PHYs (ax88796b_rust.ko) + instead of the C version.
This does not properly describe what hardware this driver supports. And that's an odd way to describe the module name, but I see none of the other entries in this file do that either, so maybe the PHY subsystm doesn't require that? thanks, greg k-h