]> git.ipfire.org Git - thirdparty/linux.git/commit
net: airoha: Introduce airoha_gdm_dev struct
authorLorenzo Bianconi <lorenzo@kernel.org>
Wed, 27 May 2026 10:21:15 +0000 (12:21 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 2 Jun 2026 20:24:25 +0000 (13:24 -0700)
commitec6c391bcca748bca041d5db92ff3bc4c99b3572
treec1906c9c748a89fe27923aacf3d4fe30c2ac5b48
parent5996b5ab8b37f32b62f8a25f27c9888b628fefb1
net: airoha: Introduce airoha_gdm_dev struct

EN7581 and AN7583 SoCs support connecting multiple external SerDes to GDM3
or GDM4 ports via a hw arbiter that manages the traffic in a TDM manner.
As a result multiple net_devices can connect to the same GDM{3,4} port
and there is a theoretical "1:n" relation between GDM port and
net_devices.
Introduce airoha_gdm_dev struct to collect net_device related info (e.g.
net_device and external phy pointer). Please note this is just a
preliminary patch and we are still supporting a single net_device for
each GDM port. Subsequent patches will add support for multiple net_devices
connected to the same GDM port.

Tested-by: Xuegang Lu <xuegang.lu@airoha.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260527-airoha-eth-multi-serdes-preliminary-v1-1-ec6ed73ef7fc@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_ppe.c