3 Commits

Author SHA1 Message Date
Aleksander Jan Bajkowski
63656f59ec mdio-tools: backport segfault fix
Return an ENOMEM error when the buffer is too small to perform the operation.

Before:
$ mdio mt7530-0 0x05:31 dump 0x0+512
Segmentation fault

After:
$ mdio mt7530-0 0x05:31 dump 0x0+512
ERROR: Dump operation failed (-12)

Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
2025-11-13 08:44:08 +01:00
Robert Marko
ddf1bccc76 mdio-tools: update to 1.2.0
Update the mdio-netlink kmod and userspace mdio-tools to version 1.2.0.
This allows dropping the time64 musl patch which was upstreamed.

[v1.2.0] - 2022-09-15
---------------------

- mdio: A new addressing mode "mmd-c22": Used to access MMDs attached
  to MDIO controllers without Clause 45 support by using registers 13
  and 14 in the device's Clause 22 register space
- mdio: Pretty print gigabit link capability information from a PHY's
  extended status register
- mdio: Pretty print lots of status information from MMDs (C45 PHYs)
- mvls: Decode priority override information of ATU entries

- mvls: Table listings now always prints out the device information,
  even on single chip systems.

Signed-off-by: Robert Marko <robimarko@gmail.com>
2022-09-19 19:50:16 +02:00
Robert Marko
4048eeb3ea mdio-tools: update to 1.1.1
Update the mdio-netlink kmod and userspace mdio-tools to version 1.1.1.

mdio-tools required a musl time64 compatibility fix that I have an PR
open for already.

Changelog:
[v1.1.1] - 2022-05-23
---------------------

Tiny bugfix release.

- mdio: The bench operation is now much more reliable when stacked on
  other devices than regular PHYs (e.g. paged PHYs or Marvell
  switches).
- mvls: The STU can now be dumped chips from the Peridot generation.

[v1.1.0] - 2022-05-04
---------------------

A sprawling release, adding various mvls related introspection
features. mvls also gains a JSON output format.

- mvls: The STU can now be dumped (requires Linux 5.17 or later). This
  is useful now that mv88e6xxx supports offloading of MST states
- mvls: Output can now be formatted as JSON for easier scripting
- mdio: mvls: A subset of MIB counters can now be dumped. This let's
  you get at counters for DSA ports, which are not reachable from
  ethtool
- mdio: mvls: The LAG mask and LAG map tables can now be dumped
- mdio: Improve usage message by including the examples from the
  manual

Signed-off-by: Robert Marko <robert.marko@sartura.hr>
2022-06-09 11:06:41 -07:00