Skip to content

net: Use dev APIs

Peng Fan (OSS) u-boot 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20260526-devfdt-net-a0fe75cd7f49

Versions newest first

  1. v2 Latest6 patches 2 repliesIn review
  2. v16 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- Add R-b from Simon
- In patch 6:
- drop unused variables,
- drop error return code which not follows "No functional changes". This patchset is mainly for API updating, not indended to do functional change.
- Link to v1: https://lore.kernel.org/r/[email protected]

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net: ethoc: Use dev_read_addr_index()drivers/net/ethoc.c+1 -10 replies
2/6net: qe: dm_qe_uec: Use dev_read_addr()drivers/net/qe/dm_qe_uec.c+1 -11 reply
3/6net: calxedaxgmac: Use dev_read_addr()drivers/net/calxedaxgmac.c+1 -10 replies
4/6net: dc2114x: Use dev_remap_addr()drivers/net/dc2114x.c+1 -10 replies
5/6net: mvpp2: Use dev_read_addr_index_ptr()drivers/net/mvpp2.c+4 -50 replies
6/6net: mvpp2: convert FDT access to ofnode APIdrivers/net/mvpp2.c+21 -260 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchSimon GlassHeiko Schocher
1/6R-b
2/6R-b R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/6] net: Use dev APIs

This series converts several Ethernet drivers to use the generic device model APIs for device tree access, replacing devfdt_* and fdtdec/fdt_* interfaces.

The goal is to improve compatibility with both live device tree and flat device tree backends, and to reduce direct dependencies on low-level FDT helpers.

Patches 1–5 perform straightforward replacements:
- devfdt_get_addr() → dev_read_addr()
- devfdt_get_addr_index() → dev_read_addr_index()
- devfdt_get_addr_index_ptr() → dev_read_addr_index_ptr()
- map_physmem(devfdt_get_addr()) → dev_remap_addr()

These changes are mechanical and introduce no functional change.

Patch 6 converts the mvpp2 driver from legacy fdtdec/fdt_* APIs to ofnode-based interfaces. This removes dependencies on gd->fdt_blob and updates phandle parsing, subnode iteration, property access, and device lookup.

No intended functional changes.

I not have the platforms to test, just best practice for this work.

---
Changes in v2:
- Add R-b from Simon
- In patch 6:
- drop unused variables,
- drop error return code which not follows "No functional changes". This patchset is mainly for API updating, not indended to do functional change.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Peng Fan (6):
net: ethoc: Use dev_read_addr_index()
net: qe: dm_qe_uec: Use dev_read_addr()
net: calxedaxgmac: Use dev_read_addr()
net: dc2114x: Use dev_remap_addr()
net: mvpp2: Use dev_read_addr_index_ptr()
net: mvpp2: convert FDT access to ofnode API

 drivers/net/calxedaxgmac.c |  2 +-
 drivers/net/dc2114x.c      |  2 +-
 drivers/net/ethoc.c        |  2 +-
 drivers/net/mvpp2.c        | 56 +++++++++++++++++++++-------------------------
 drivers/net/qe/dm_qe_uec.c |  2 +-
 5 files changed, 29 insertions(+), 35 deletions(-)

---
base-commit: bb354d04459f5425318aeb8a70bae995ee573f1d
change-id: 20260526-devfdt-net-a0fe75cd7f49

Best regards,

Signature · 1 line
Peng Fan <[email protected]>