Skip to content

Add MDIO driver model support

make at marvell.com u-boot 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 0 repliesNew
  2. v3 posting 2/22 patches 0 repliesSuperseded
  3. v3 posting 1/22 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/22 patches0 repliesSuperseded
v2 posting 1/22 patches0 repliesSuperseded
v12 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Minor updates for comments and Maintainer.
- Use wait_for_bit_le32() instead of implementing private busy wait polling function.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dm: mdio: add a uclass for MDIOMAINTAINERS doc/device-tree-bindings/net/mdio-bus.txt drivers/Kconfig +6 more+257 -04 replies
2/2mdio: add marvell MDIO driverMAINTAINERS arch/arm/Kconfig doc/device-tree-bindings/net/marvell-mdio.txt +3 more+231 -02 replies

Reviews trailers per patch

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

PatchChris PackhamStefan RoeseJoe Hershberger
1/2R-b
2/2R-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 3 reviewers.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 0/2] Add MDIO driver model support

From: Ken Ma <[email protected]>

Changes in v4:
- Minor updates for comments and Maintainer.
- Use wait_for_bit_le32() instead of implementing private busy wait polling function.

Changes in v3:
- Move mdio uclass implementation to driver/net folder;
- Replace flat-tree functions with livetree functions and update codes and comments to be consistent with driver-model codes style;
- Put struct mii_dev to uclass platdata to avoid the mdio alloc and let driver model framework to alloc the memroy automatically, meanwhile the mii bus link initialization is added.
- Move marvell mdio driver to driver/net/mdio folder;
- Update codes according to mdio uclass implementation updates.

Changes in v2:
- Fix error printing:
- Change some debug to pr_err;
- mii bus has no parent member and it is not a udevice, so dev_err is changed to pr_err for mii bus error printings.
- Fix error printing:
- Change some debug to pr_err;
- mii bus has no parent member and it is not a udevice, so dev_err is changed to pr_err for mii bus error printings.

Ken Ma (2):
dm: mdio: add a uclass for MDIO
mdio: add marvell MDIO driver

 MAINTAINERS                                   |   2 +
 arch/arm/Kconfig                              |   1 +
 doc/device-tree-bindings/net/marvell-mdio.txt |  18 +++
 doc/device-tree-bindings/net/mdio-bus.txt     |  54 +++++++
 drivers/Kconfig                               |   2 +
 drivers/net/Makefile                          |   1 +
 drivers/net/mdio/Kconfig                      |  28 ++++
 drivers/net/mdio/Makefile                     |   7 +
 drivers/net/mdio/mdio-uclass.c                | 112 +++++++++++++++
 drivers/net/mdio/mvmdio.c                     | 200 ++++++++++++++++++++++++++
 include/dm/uclass-id.h                        |   1 +
 include/net/mdio.h                            |  62 ++++++++
 12 files changed, 488 insertions(+)
 create mode 100644 doc/device-tree-bindings/net/marvell-mdio.txt
 create mode 100644 doc/device-tree-bindings/net/mdio-bus.txt
 create mode 100644 drivers/net/mdio/Kconfig
 create mode 100644 drivers/net/mdio/Makefile
 create mode 100644 drivers/net/mdio/mdio-uclass.c
 create mode 100644 drivers/net/mdio/mvmdio.c
 create mode 100644 include/net/mdio.h
Signature · 1 line
1.9.1