mdio-tools: update to 1.3.2

Update the mdio-netlink kmod and userspace mdio-tools to version 1.3.2.

[v1.3.2] - 2026-04-14
---------------------

Build fixes and support for Microchip's paged PHYs.

Added:
- mdio: A new addressing mode "mscc": Used to access PHYs from
  Microchip that uses C22 register 31 as a page register

Fixed:
- mdio: Fix VPATH builds and various other build related warnings

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
This commit is contained in:
Pawel Dembicki
2026-04-14 11:41:35 +02:00
committed by Alexandru Ardelean
parent 79ae772593
commit 9d59ce08a1
2 changed files with 4 additions and 38 deletions
+4 -4
View File
@@ -1,13 +1,13 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=mdio-tools
PKG_VERSION:=1.3.1
PKG_RELEASE:=3
PKG_VERSION:=1.3.2
PKG_RELEASE:=1
PKG_SOURCE_URL:=https://github.com/wkz/mdio-tools
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=f74eaf38dbda441df4fcaeb21ca4465957953a2f
PKG_MIRROR_HASH:=faa3ad7dd254361c6a9f044aa134982cbeec0423149726e82363833b9f0e0f11
PKG_SOURCE_VERSION:=a1fca6b8fb3b5a95ebb28324a95673488dddc005
PKG_MIRROR_HASH:=da219b19a42db0e8f559c33a1dcd3e31a854ed907518b3ffa8f89a09152a9da6
PKG_FIXUP:=autoreconf
@@ -1,34 +0,0 @@
From d7e314e45c112198d15220333b869604478a2e49 Mon Sep 17 00:00:00 2001
From: Aleksander Jan Bajkowski <olek2@wp.pl>
Date: Sun, 28 Sep 2025 23:31:00 +0200
Subject: [PATCH] mdio: fix segmentation fault in dump operation
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)
Fixes: 882488711ca0 ("mdio: Add common dump operation to read ranges of registers")
Signed-off-by: Aleksander Jan Bajkowski <olek2@wp.pl>
---
src/mdio/mdio.c | 3 +++
1 file changed, 3 insertions(+)
--- a/src/mdio/mdio.c
+++ b/src/mdio/mdio.c
@@ -613,6 +613,9 @@ int mdio_xfer_timeout(const char *bus, s
struct nlmsghdr *nlh;
int err;
+ if (prog->len * sizeof(*prog->insns) > len)
+ return -ENOMEM;
+
nlh = msg_init(MDIO_GENL_XFER, NLM_F_REQUEST | NLM_F_ACK);
if (!nlh)
return -ENOMEM;