rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/2] net::phy support for C45
@ 2024-06-01  4:35 FUJITA Tomonori
  2024-06-01  4:35 ` [RFC PATCH v2 1/2] rust: net::phy support for C45 register access FUJITA Tomonori
  2024-06-01  4:35 ` [RFC PATCH v2 2/2] rust: net::phy support for C45 genphy helpers FUJITA Tomonori
  0 siblings, 2 replies; 8+ messages in thread
From: FUJITA Tomonori @ 2024-06-01  4:35 UTC (permalink / raw)
  To: rust-for-linux; +Cc: andrew, benno.lossin, tmgross

Adds support for reading/writing C45 registers and genphy helper
functions executed via C45 registers.

We could add methods for C45 like read/write_c45 and
genphy_c45_read_status. Instead, this implements the API for C22 and
C45 with trait in an unified way.

v2:
- add genphy helper support and split the patch
- create a 'reg' module
- define C22 according to the specs
- handle C22 vendor specific registers
- add const for C45 MMD
v1: https://lore.kernel.org/all/20240530.145258.456915814420167538.fujita.tomonori@gmail.com/T/


FUJITA Tomonori (2):
  rust: net::phy support for C45 register access
  rust: net::phy support for C45 genphy helpers

 drivers/net/phy/ax88796b_rust.rs |   7 +-
 rust/kernel/net/phy.rs           | 241 ++++++++++++++++++++++++++-----
 rust/uapi/uapi_helper.h          |   1 +
 3 files changed, 212 insertions(+), 37 deletions(-)


base-commit: e19de2064fdf6f1f2488e36cf3927c3f1d01803c
-- 
2.34.1


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

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

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-01  4:35 [RFC PATCH v2 0/2] net::phy support for C45 FUJITA Tomonori
2024-06-01  4:35 ` [RFC PATCH v2 1/2] rust: net::phy support for C45 register access FUJITA Tomonori
2024-06-01 12:21   ` Benno Lossin
2024-06-02  7:24     ` FUJITA Tomonori
2024-06-02  9:59       ` Benno Lossin
2024-06-01  4:35 ` [RFC PATCH v2 2/2] rust: net::phy support for C45 genphy helpers FUJITA Tomonori
2024-06-01 12:23   ` Benno Lossin
2024-06-02  7:36     ` FUJITA Tomonori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).