]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Merge branch 'net-ftgmac100-various-probe-cleanups'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 12:40:52 +0000 (13:40 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 12:40:53 +0000 (13:40 +0100)
Jacky Chou says:

====================
net: ftgmac100: Various probe cleanups

The probe function of the ftgmac100 is rather complex, due to the way
it has evolved over time, dealing with poor DT descriptions, and new
variants of the MAC.

Make use of DT match data to identify the MAC variant, rather than
looking at the compatible string all the time.

Make use of devm_ calls to simplify cleanup. This indirectly fixes
inconsistent goto label names.

Always probe the MDIO bus, when it exists. This simplifies the logic a
bit.

Move code into helpers to simply probe.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
====================

Link: https://patch.msgid.link/20260206-ftgmac-cleanup-v5-0-ad28a9067ea7@aspeedtech.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

Trivial merge