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

- From: Benno Lossin \<lossin@kernel.org\>
- Date: 2025-05-15 11:49:57 
- List: netdev
- Page: https://ratatoskr.run/netdev/2025/05/3056498
- Thread: https://ratatoskr.run/netdev/2025/05/3056462/t.md

```text
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.

---
Cheers,
Benno
```
