Re: [Patch net-next v4 3/6] net: dsa: microchip: lan937x: return zero if mdio node not present

From: Andrew Lunn
Date: Fri Sep 23 2022 - 14:38:47 EST


On Thu, Sep 22, 2022 at 12:40:25PM +0530, Arun Ramadoss wrote:
> Currently, if the mdio node is not present in the dts file then
> lan937x_mdio_register return -ENODEV and entire probing process fails.
> To make the mdio_register generic for all ksz series switches and to
> maintain back-compatibility with existing dts file, return -ENODEV is
> replaced with return 0.
>
> Signed-off-by: Arun Ramadoss <arun.ramadoss@xxxxxxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew