Re: [PATCH v1 1/7] mdio_bus: Introduce fwnode MDIO helpers
From: Andrew Lunn
Date: Fri Jan 31 2020 - 11:28:29 EST
On Fri, Jan 31, 2020 at 09:04:34PM +0530, Calvin Johnson wrote:
> From: Marcin Wojtas <mw@xxxxxxxxxxxx>
>
> This patch introduces fwnode helper for registering MDIO
> bus, as well as one for finding the PHY, basing on its
> firmware node pointer. Comparing to existing OF equivalent,
> fwnode_mdiobus_register() does not support:
> * deprecated bindings (device whitelist, nor the PHY ID embedded
> in the compatible string)
> * MDIO bus auto scanning
>
> Signed-off-by: Marcin Wojtas <mw@xxxxxxxxxxxx>
> Signed-off-by: Calvin Johnson <calvin.johnson@xxxxxxxxxxx>
Hi Calvin
This appears to but a cut and paste, follow by an intelligent
s/of/fwnode/g.
Did you make any attempt to consolidate the two implementations? It
seems like there should be some level of abstraction that hides away
the difference between DT properties, and DT properties stuffed into
ACPI tables?
Andrew