Re: [PATCH] of: of_mdio: count number of regitered phys

2020-07-01 Thread Claudiu.Beznea
Hi Andrew, Florian, On 30.06.2020 06:35, Florian Fainelli wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > On 6/29/2020 5:45 PM, Andrew Lunn wrote: >> On Mon, Jun 29, 2020 at 10:26:36AM +0300, Claudiu Beznea wrote: >>> In case

Re: [PATCH] of: of_mdio: count number of regitered phys

2020-06-29 Thread Florian Fainelli
On 6/29/2020 5:45 PM, Andrew Lunn wrote: > On Mon, Jun 29, 2020 at 10:26:36AM +0300, Claudiu Beznea wrote: >> In case of_mdiobus_register_phy()/of_mdiobus_register_device() >> returns -ENODEV for all PHYs in device tree or for all scanned >> PHYs there is a chance that of_mdiobus_register() to

Re: [PATCH] of: of_mdio: count number of regitered phys

2020-06-29 Thread Andrew Lunn
On Mon, Jun 29, 2020 at 10:26:36AM +0300, Claudiu Beznea wrote: > In case of_mdiobus_register_phy()/of_mdiobus_register_device() > returns -ENODEV for all PHYs in device tree or for all scanned > PHYs there is a chance that of_mdiobus_register() to > return success code although no PHY devices

[PATCH] of: of_mdio: count number of regitered phys

2020-06-29 Thread Claudiu Beznea
In case of_mdiobus_register_phy()/of_mdiobus_register_device() returns -ENODEV for all PHYs in device tree or for all scanned PHYs there is a chance that of_mdiobus_register() to return success code although no PHY devices were registered. Add a counter that increments every time a PHY was