rust: net::phy unified read/write API for C22 and C45 registers
authorFUJITA Tomonori <fujita.tomonori@gmail.com>
Wed, 28 Aug 2024 07:35:14 +0000 (07:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2024 09:27:35 +0000 (10:27 +0100)
commitb2e47002b2350f57bfa8fe1c231e9fbb6baef78b
tree86484c1de635342d063f9fd162c073f7db207253
parent7909892a9fbb3e60623e60c3c3e95e10fc56f687
rust: net::phy unified read/write API for C22 and C45 registers

Add the unified read/write API for C22 and C45 registers. The
abstractions support access to only C22 registers now. Instead of
adding read/write_c45 methods specifically for C45, a new reg module
supports the unified API to access C22 and C45 registers with trait,
by calling an appropriate phylib functions.

Reviewed-by: Trevor Gross <tmgross@umich.edu>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
MAINTAINERS
drivers/net/phy/ax88796b_rust.rs
rust/kernel/net/phy.rs
rust/kernel/net/phy/reg.rs [new file with mode: 0644]
rust/uapi/uapi_helper.h