Skip to content

of: mdio: Fall back to mdiobus_register() with NULL device_node

Florian Fainelli linux-devicetree linux-omap linux-renesas-soc linux-usb lkml netdev 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 9 repliesIn review
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- fixed build error in davincin_mdio.c (Grygorii)
- reworked first patch a bit: commit message, subject and removed useless code comment

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2of: mdio: Fall back to mdiobus_register() with NULL device_nodedrivers/of/of_mdio.c+3 -00 replies
2/2drivers: net: Remove device_node checks with of_mdiobus_register()drivers/net/dsa/bcm_sf2.c drivers/net/dsa/mv88e6xxx/chip.c drivers/net/ethernet/cadence/macb_main.c +8 more+20 -615 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchGrygorii StrashkoFugang DuanAntoine TenartJose AbreuSergei Shtylyov
1/2
2/2R-b R-b R-b R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v2 thread

Cover letter [PATCH net-next v2 0/2] of: mdio: Fall back to mdiobus_register() with NULL device_node

Hi all,

This patch series updates of_mdiobus_register() such that when the device_node argument is NULL, it calls mdiobus_register() directly. This is consistent with the behavior of of_mdiobus_register() when CONFIG_OF=n.

I only converted the most obvious drivers, there are others that have a much less obvious behavior and specifically attempt to deal with CONFIG_ACPI.

Changes in v2:

- fixed build error in davincin_mdio.c (Grygorii)
- reworked first patch a bit: commit message, subject and removed useless code comment

Florian Fainelli (2):
of: mdio: Fall back to mdiobus_register() with NULL device_node
drivers: net: Remove device_node checks with of_mdiobus_register()

 drivers/net/dsa/bcm_sf2.c                         |  8 ++------
 drivers/net/dsa/mv88e6xxx/chip.c                  |  5 +----
 drivers/net/ethernet/cadence/macb_main.c          | 12 +++---------
 drivers/net/ethernet/freescale/fec_main.c         |  8 ++------
 drivers/net/ethernet/marvell/mvmdio.c             |  5 +----
 drivers/net/ethernet/renesas/sh_eth.c             | 11 +++--------
 drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c |  5 +----
 drivers/net/ethernet/ti/davinci_mdio.c            |  8 +++-----
 drivers/net/phy/mdio-gpio.c                       |  6 +-----
 drivers/net/phy/mdio-mscc-miim.c                  |  6 +-----
 drivers/net/usb/lan78xx.c                         |  7 ++-----
 drivers/of/of_mdio.c                              |  3 +++
 12 files changed, 23 insertions(+), 61 deletions(-)
Signature · 1 line
2.14.1