diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2026-06-04 04:08:37 +0300 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2026-06-23 13:13:16 +0200 |
| commit | 5aa2066aca2ad95c5ed204c50dfd69379c9a8d32 (patch) | |
| tree | 1e1922944c6689b17e7d52d724f974bc183a4d5e /doc/develop/printf.rst | |
| parent | f072620dc9ffda00b010783da27c41231c3a439b (diff) | |
net: airoha_eth: fix mt7531 mdio related initialization bug
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 <[email protected]>
Diffstat (limited to 'doc/develop/printf.rst')
0 files changed, 0 insertions, 0 deletions
