Re: [PATCH net-next] net: cadence: macb: add ethtool nway_reset support
From: Paolo Abeni
Date: Tue Feb 24 2026 - 09:16:56 EST
On 2/23/26 10:14 AM, Nicolai Buchwitz wrote:
> Wire phy_ethtool_nway_reset() as the .nway_reset ethtool operation,
> allowing userspace to restart PHY autonegotiation via 'ethtool -r'.
>
> Signed-off-by: Nicolai Buchwitz <nb@xxxxxxxxxxx>
> ---
> drivers/net/ethernet/cadence/macb_main.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c
> index 43cd013bb70e..47fd85cd9613 100644
> --- a/drivers/net/ethernet/cadence/macb_main.c
> +++ b/drivers/net/ethernet/cadence/macb_main.c
> @@ -3945,6 +3945,7 @@ static const struct ethtool_ops gem_ethtool_ops = {
> .get_rxnfc = gem_get_rxnfc,
> .set_rxnfc = gem_set_rxnfc,
> .get_rx_ring_count = gem_get_rx_ring_count,
> + .nway_reset = phy_ethtool_nway_reset,
Please use consistent indentation, i.e. align the '=' above.
Thanks,
Paolo