# Re: \[net-next PATCH v10 7/7\] rust: net::phy sync with match\_phy\_device C changes

- From: Christian Marangi \<ansuelsmth@gmail.com\>
- Date: 2025-05-15 11:51:25 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/05/3056503
- Thread: https://ratatoskr.run/netdev/2025/05/3056462/t.md

```text
On Thu, May 15, 2025 at 01:49:35PM +0200, Benno Lossin wrote:
> On Thu May 15, 2025 at 1:27 PM CEST, Christian Marangi wrote:
> > Sync match_phy_device callback wrapper in net:phy rust with the C
> > changes where match_phy_device also provide the passed PHY driver.
> >
> > As explained in the C commit, this is useful for match_phy_device to
> > access the PHY ID defined in the PHY driver permitting more generalized
> > functions.
> >
> > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
> > ---
> >  rust/kernel/net/phy.rs | 26 +++++++++++++++++++++++---
> >  1 file changed, 23 insertions(+), 3 deletions(-)
> 
> You probably should do this in the same commit as the C changes,
> otherwise the in-between commits will error.
> 

You are right, I will fix this in v11 but I would really want to know if
the Rust changes are correct. It's not my main language so it's all
discovering new stuff :D

-- 
	Ansuel
```
