diff options
author | MD Danish Anwar <[email protected]> | 2024-04-23 14:18:28 +0530 |
---|---|---|
committer | David S. Miller <[email protected]> | 2024-04-25 11:25:07 +0100 |
commit | 6c9cd59dbcb09a2122b5ce0dfc07c74e6fc00dc0 (patch) | |
tree | dbf60f77df7f2fe04bc937e80bca8c80004a04a4 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | e6b219014fb3a2601b66086a551b7363ace8dd28 (diff) |
net: phy: dp83869: Fix MII mode failure
The DP83869 driver sets the MII bit (needed for PHY to work in MII mode)
only if the op-mode is either DP83869_100M_MEDIA_CONVERT or
DP83869_RGMII_100_BASE.
Some drivers i.e. ICSSG support MII mode with op-mode as
DP83869_RGMII_COPPER_ETHERNET for which the MII bit is not set in dp83869
driver. As a result MII mode on ICSSG doesn't work and below log is seen.
TI DP83869 300b2400.mdio:0f: selected op-mode is not valid with MII mode
icssg-prueth icssg1-eth: couldn't connect to phy ethernet-phy@0
icssg-prueth icssg1-eth: can't phy connect port MII0
Fix this by setting MII bit for DP83869_RGMII_COPPER_ETHERNET op-mode as
well.
Fixes: 94e86ef1b801 ("net: phy: dp83869: support mii mode when rgmii strap cfg is used")
Signed-off-by: MD Danish Anwar <[email protected]>
Reviewed-by: Ravi Gunasekaran <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions