mbox series

[net-next,v2,0/3] net: mdio: setup both fwnode and of_node

Message ID 20210617122905.1735330-1-ciorneiioana@gmail.com
Headers show
Series net: mdio: setup both fwnode and of_node | expand

Message

Ioana Ciornei June 17, 2021, 12:29 p.m. UTC
From: Ioana Ciornei <ioana.ciornei@nxp.com>

The first patch in this series fixes a bug introduced by mistake in the
previous ACPI MDIO patch set.

The next two patches are adding a new helper which takes a device and a
fwnode_handle and populates both the of_node and fwnode so that we make
sure that a bug like this does not happen anymore.
Also, the new helper is used in the MDIO area.

Ioana Ciornei (3):
  net: mdio: setup of_node for the MDIO device
  driver core: add a helper to setup both the of_node and fwnode of a
    device
  net: mdio: use device_set_node() to setup both fwnode and of

 drivers/base/core.c            | 7 +++++++
 drivers/net/mdio/fwnode_mdio.c | 2 +-
 drivers/net/mdio/of_mdio.c     | 9 ++++-----
 drivers/net/phy/mdio_bus.c     | 3 +--
 include/linux/device.h         | 1 +
 5 files changed, 14 insertions(+), 8 deletions(-)