From 1124e6fc85fe51c11c9a356b1fb942d22fe8dd23 Mon Sep 17 00:00:00 2001
From: Altair Bueno Calvente <abueno@airzonecontrol.com>
Date: Mon, 26 Oct 2026 08:44:47 +0100
Subject: [meta-networking][wrynose][PATCH] mdio-tools,mdio-netlink: upgrade
 1.3.1 -> 1.3.2

mdio-tools 1.3.1 fails to link when the lto distro feature is enabled,
because the linker discards the unreferenced command registrations
(wkz/mdio-tools#37). 1.3.2 fixes this by marking them as used and
placing them in a dedicated section kept by a linker script, and also
fixes the VPATH build breakage that change introduced. 1.3.2 also adds
the "mscc" addressing mode for Microchip PHYs.

Backport of master commit 1f465d9d28 ("mdio-tools,mdio-netlink: upgrade
1.3.1 -> 1.3.2,1.3.1 -> 1.3.2").

Fixes: https://github.com/openembedded/meta-openembedded/issues/1075

(cherry picked from commit 1f465d9d282ae9b795067bd13220a8c8103b23f4)
AI-Generated: Uses Claude Code
Signed-off-by: Altair Bueno Calvente <abueno@airzonecontrol.com>
---
 .../{mdio-netlink_1.3.1.bb => mdio-netlink_1.3.2.bb}          | 0
 meta-networking/recipes-support/mdio-tools/mdio-tools.inc     | 4 ++--
 .../mdio-tools/{mdio-tools_1.3.1.bb => mdio-tools_1.3.2.bb}   | 1 +
 3 files changed, 3 insertions(+), 2 deletions(-)
 rename meta-networking/recipes-support/mdio-tools/{mdio-netlink_1.3.1.bb => mdio-netlink_1.3.2.bb} (100%)
 rename meta-networking/recipes-support/mdio-tools/{mdio-tools_1.3.1.bb => mdio-tools_1.3.2.bb} (99%)

diff --git a/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb b/meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.2.bb
similarity index 100%
rename from meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.1.bb
rename to meta-networking/recipes-support/mdio-tools/mdio-netlink_1.3.2.bb
diff --git a/meta-networking/recipes-support/mdio-tools/mdio-tools.inc b/meta-networking/recipes-support/mdio-tools/mdio-tools.inc
index fc8161eb1f..b90f476e89 100644
--- a/meta-networking/recipes-support/mdio-tools/mdio-tools.inc
+++ b/meta-networking/recipes-support/mdio-tools/mdio-tools.inc
@@ -4,5 +4,5 @@ HOMEPAGE = "https://github.com/wkz/mdio-tools"
 LICENSE = "GPL-2.0-or-later"
 LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
 
-SRC_URI = "git://github.com/wkz/mdio-tools.git;protocol=https;branch=master"
-SRCREV = "f74eaf38dbda441df4fcaeb21ca4465957953a2f"
+SRC_URI = "git://github.com/wkz/mdio-tools.git;protocol=https;branch=master;tag=${PV}"
+SRCREV = "a1fca6b8fb3b5a95ebb28324a95673488dddc005"
diff --git a/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb b/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.2.bb
similarity index 99%
rename from meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb
rename to meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.2.bb
index 2c8f9b8c37..3b4a525da0 100644
--- a/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.1.bb
+++ b/meta-networking/recipes-support/mdio-tools/mdio-tools_1.3.2.bb
@@ -6,3 +6,4 @@ DEPENDS += "virtual/kernel libmnl"
 inherit pkgconfig autotools
 
 RRECOMMENDS:${PN} = "kernel-module-mdio-netlink"
+
-- 
2.53.0

