<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/net/airoha_eth.c, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/net/airoha_eth.c?h=main</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/net/airoha_eth.c?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2026-06-23T11:13:16Z</updated>
<entry>
<title>net: airoha_eth: fix mt7531 mdio related initialization bug</title>
<updated>2026-06-23T11:13:16Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-06-04T01:08:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=5aa2066aca2ad95c5ed204c50dfd69379c9a8d32'/>
<id>urn:sha1:5aa2066aca2ad95c5ed204c50dfd69379c9a8d32</id>
<content type='text'>
Private data isn't ready during bind time. The call of dev_get_priv()
function will return NULL. Thus we can't save mdio device pointer and
use it later during probe.

To solve an issue, we will move mt7531 mdio device binding to the probing
function of 'airoha-eth' driver.

All GDM ports (except of GDM1) are connected directly to their PHYs, so
corresponding mdio bus will be automatically probed during PHY setup.

GDM1 ports differ from other GDM ports. It connected to the airoha switch
device. The mt7531 mdio bus is used to manage link state of airoha switch
device ports (LAN ports 1-4 corresponds to PHYs 0x09-0x0C). Therefore,
manual probing of mt7531 mdio bus is required to be able set/query states
of corresponding LAN ports.

Fixes: 96d9e7c46425 ("net: airoha: use mt7531 mdio for GDM1")
Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: probe airoha switch mdio on airoha_eth probing</title>
<updated>2026-03-31T14:43:28Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-03-15T07:47:55Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a05c0d17321e09353bb4a5b993f8d4579f1696c8'/>
<id>urn:sha1:a05c0d17321e09353bb4a5b993f8d4579f1696c8</id>
<content type='text'>
Airoha switch mdio maybe used not only by GDM1, but also by other GDM
ports (ex: as21xxx phy connected to GDM2 port). So it's better probe
airoha switch mdio a bit early in the airoha_eth_probe() code.

Also remove useless eth_phy_set_mdio_bus() call and related code.

Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: use mt7531 mdio for GDM1</title>
<updated>2026-03-12T14:53:41Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-02-11T18:22:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=96d9e7c46425dbb78429d4ce23b28089cfc782f4'/>
<id>urn:sha1:96d9e7c46425dbb78429d4ce23b28089cfc782f4</id>
<content type='text'>
Current code just bind mt7531 mdio with it's driver, so mdio device may
not be probed and hense not usable.

This patch:
 * Forces probing of mt7531 mdio for GDM1 port
 * Renames the mt7531 mdio bus interface to 'mt7531-mdio'. We may have
   multiple available MDIO, so the name 'mdio' isn't descriptive enough.
 * Sets mdio bus for the GDM port device

Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: makes PCS support optional</title>
<updated>2026-03-12T14:53:41Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-02-11T18:22:29Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=08fa7baad59c10a4af74086d220b7dcd77f32e68'/>
<id>urn:sha1:08fa7baad59c10a4af74086d220b7dcd77f32e68</id>
<content type='text'>
It's not possible to disable PCS support just now, an7581 u-boot will not
compile. This patch fixes an issue.

Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: fill in support for PCS/PHY in Airoha Ethernet driver</title>
<updated>2026-03-12T14:53:41Z</updated>
<author>
<name>Christian Marangi</name>
<email>ansuelsmth@gmail.com</email>
</author>
<published>2026-02-11T18:22:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=a527b1105142e6b2f9438ff61e9bcab54183ccb4'/>
<id>urn:sha1:a527b1105142e6b2f9438ff61e9bcab54183ccb4</id>
<content type='text'>
Add required changes to call PCS function to configure the Serdes Port.
The Ethernet driver is adapted following Upstream Kernel node structure.

Function calling order is the same of Phylink upstream kernel.

With the PCS support, also add support for attaching PHY. With
"in-band-status" set in DT for the managed property, a rudimental
support for SFP module is present.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>net: airoha: init switch before GDM port initialization</title>
<updated>2026-03-12T11:49:35Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-02-11T18:22:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=794c30b9d89274856ac79862486241b2e8eb2591'/>
<id>urn:sha1:794c30b9d89274856ac79862486241b2e8eb2591</id>
<content type='text'>
Call airoha_switch_init() before creating GDM instances, so if
allocation of GDM port fails, early created GDM instances will work
normally.

Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: do not call airoha_fe_init() from GDM port independent code</title>
<updated>2026-03-12T11:49:35Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-02-11T18:22:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=b4029a4049adc39f054d6c2d3028a94738f32b5f'/>
<id>urn:sha1:b4029a4049adc39f054d6c2d3028a94738f32b5f</id>
<content type='text'>
We should not call airoha_fe_init() from GDM port independent code,
because it do a GDM specific things.

Makes airoha_fe_maccr_init() and airoha_fe_init() port dependent
and call them from airoha_eth_port_probe()

Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: declare airoha_eth_port as U_BOOT_DRIVER()</title>
<updated>2026-03-12T11:49:35Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-02-11T18:22:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=be0c12296e59925b4f29994b9a4dcaa3bc4660e0'/>
<id>urn:sha1:be0c12296e59925b4f29994b9a4dcaa3bc4660e0</id>
<content type='text'>
Declare airoha_eth_port as U_BOOT_DRIVER(), fix airoha_alloc_gdm_port()
to lookup a driver instead of direct airoha_eth_port usage.

Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: avoid out of boundary writing/access to gdm_port_str[] array</title>
<updated>2026-03-12T11:49:35Z</updated>
<author>
<name>Mikhail Kshevetskiy</name>
<email>mikhail.kshevetskiy@iopsys.eu</email>
</author>
<published>2026-02-11T18:22:17Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=7ad4c7f8cf07bd2206b2baa118ce2ef56f0caf60'/>
<id>urn:sha1:7ad4c7f8cf07bd2206b2baa118ce2ef56f0caf60</id>
<content type='text'>
In the case of an7581 possible GDM port id are: 1, 2 and 4.
Initialization of port GDM4 will lead to out of boundary writing
to gdm_port_str[] array.

Let's increase the array size by 1 to avoid it.

Signed-off-by: Mikhail Kshevetskiy &lt;mikhail.kshevetskiy@iopsys.eu&gt;
</content>
</entry>
<entry>
<title>net: airoha: add initial support for multiple GDM port</title>
<updated>2026-03-12T11:49:35Z</updated>
<author>
<name>Christian Marangi</name>
<email>ansuelsmth@gmail.com</email>
</author>
<published>2026-02-11T18:22:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=0561b0b25a16c1cae910c29cf3588aa29fc1f0a3'/>
<id>urn:sha1:0561b0b25a16c1cae910c29cf3588aa29fc1f0a3</id>
<content type='text'>
Rework the driver to support multiple GDM port. The driver is split to
main driver as a MISC driver with forced probe (by using the
DM_FLAG_PROBE_AFTER_BIND) and each GDM port register a ETH driver.

This permit a 1:1 implementation with the linux kernel driver and permit
to use the same exact DT nodes.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
</feed>
