Re: [PATCH net-next v6 10/11] net: dsa: realtek: use the same mii bus driver for both interfaces

From: Linus Walleij
Date: Fri Feb 09 2024 - 08:23:48 EST


On Fri, Feb 9, 2024 at 6:05 AM Luiz Angelo Daros de Luca
<luizluca@xxxxxxxxx> wrote:

> The realtek-mdio will now use this driver instead of the generic DSA
> driver ("dsa user smi"), which should not be used with OF[1].
>
> With a single ds_ops for both interfaces, the ds_ops in realtek_priv is
> no longer necessary. Now, the realtek_variant.ds_ops can be used
> directly.
>
> The realtek_priv.setup_interface() has been removed as we can directly
> call the new common function.
>
> [1] https://lkml.kernel.org/netdev/20220630200423.tieprdu5fpabflj7@xxxxxxxxxxxxxxx/T/
>
> Signed-off-by: Luiz Angelo Daros de Luca <luizluca@xxxxxxxxx>
> Reviewed-by: Vladimir Oltean <olteanv@xxxxxxxxx>

Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>

Yours,
Linus Walleij