diff options
| author | Russell King (Oracle) <[email protected]> | 2025-03-12 09:21:02 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2025-03-18 14:53:15 +0000 |
| commit | 3d9e9dfce04c77f2e232a50834f4666e1994cbb0 (patch) | |
| tree | e7c59e849e0dcce932186340eb2829d050f3f8ad /net/core/utils.c | |
| parent | net: stmmac: sti: remove of_get_phy_mode() (diff) | |
| download | kernel-3d9e9dfce04c77f2e232a50834f4666e1994cbb0.tar.gz kernel-3d9e9dfce04c77f2e232a50834f4666e1994cbb0.zip | |
net: stmmac: sun8i: remove of_get_phy_mode()
devm_stmmac_probe_config_dt() already gets the PHY mode from firmware,
which is stored in plat_dat->phy_interface. Therefore, we don't need to
get it in platform code.
sun8i was using of_get_phy_mode() to set plat_dat->mac_interface, which
defaults to plat_dat->phy_interface when the mac-mode DT property is
not present. As nothing in arch/*/boot/dts sets the mac-mode property,
it is highly likely that these two will be identical, and thus there
is no need for this glue driver to set plat_dat->mac_interface.
Reviewed-by: Andre Przywara <[email protected]>
Reviewed-by: Michal Kubiak <[email protected]>
Signed-off-by: Russell King (Oracle) <[email protected]>
Link: https://patch.msgid.link/[email protected]
Reviewed-by: Jacob Keller <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'net/core/utils.c')
0 files changed, 0 insertions, 0 deletions
