Skip to content

RFC ACPI support for xgmac_mdio and dpaa2-mac drivers

Calvin Johnson linux-acpi linux-arm-kernel lkml netdev oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 RFC Latest2 patches 9 repliesIn review

Changes in v2 from the cover letter

- Use IS_ERR_OR_NULL for priv->mdio_base instead of plain NULL check
- Add missing terminator of struct acpi_device_id
- Use device_property_read_bool and avoid redundancy
- Add helper functions xgmac_get_phy_id() and xgmac_mdiobus_register_phy()
- Major change following other network drivers supporting ACPI
- dropped v1 patches 1, 2, 4, 5 and 6 as they are no longer valid
- incorporated other v1 review comments

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/fsl: add ACPI support for mdio busdrivers/net/ethernet/freescale/xgmac_mdio.c+121 -226 replies
2/2net: dpaa2-mac: Add ACPI support for DPAA2 MAC driverdrivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c+94 -283 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [RFC net-next PATCH v2 0/2] ACPI support for xgmac_mdio and dpaa2-mac drivers

Following other network drivers that supports ACPI, v2 of this patchset uses non-DT APIs to register mdiobus, register PHYs, create phylink and connect phy to mac.

This patchset is dependent on fsl-mc-bus patch:
https://lkml.org/lkml/2020/1/28/91

Two helper functions are borrowed from an old patch by Marcin Wojtas:(mdio_bus: Introduce fwnode MDIO helpers).
https://lkml.org/lkml/2017/12/18/211

Changes in v2:
- Use IS_ERR_OR_NULL for priv->mdio_base instead of plain NULL check
- Add missing terminator of struct acpi_device_id
- Use device_property_read_bool and avoid redundancy
- Add helper functions xgmac_get_phy_id() and xgmac_mdiobus_register_phy()
- Major change following other network drivers supporting ACPI
- dropped v1 patches 1, 2, 4, 5 and 6 as they are no longer valid
- incorporated other v1 review comments

Calvin Johnson (2):
net/fsl: add ACPI support for mdio bus
net: dpaa2-mac: Add ACPI support for DPAA2 MAC driver

 .../net/ethernet/freescale/dpaa2/dpaa2-mac.c  | 122 +++++++++++----
 drivers/net/ethernet/freescale/xgmac_mdio.c   | 143 +++++++++++++++---
 2 files changed, 215 insertions(+), 50 deletions(-)
Signature · 1 line
2.17.1