diff options
| author | Matthias Schiffer <[email protected]> | 2024-04-17 10:37:37 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-04-22 20:38:27 +0000 |
| commit | a4e3899065ffa87d49dc20e8c17501edbc189692 (patch) | |
| tree | 63016bb21057e46dd4b42b1805b209c6fbcd3a5c /tools/net/ynl/lib/ynl.py | |
| parent | Merge branch 'bnxt_en-aer-fixes' (diff) | |
| download | kernel-a4e3899065ffa87d49dc20e8c17501edbc189692.tar.gz kernel-a4e3899065ffa87d49dc20e8c17501edbc189692.zip | |
net: dsa: mv88e6xx: fix supported_interfaces setup in mv88e6250_phylink_get_caps()
With the recent PHYLINK changes requiring supported_interfaces to be set,
MV88E6250 family switches like the 88E6020 fail to probe - cmode is
never initialized on these devices, so mv88e6250_phylink_get_caps() does
not set any supported_interfaces flags.
Instead of a cmode, on 88E6250 we have a read-only port mode value that
encodes similar information. There is no reason to bother mapping port
mode to the cmodes of other switch models; instead we introduce a
mv88e6250_setup_supported_interfaces() that is called directly from
mv88e6250_phylink_get_caps().
Fixes: de5c9bf40c45 ("net: phylink: require supported_interfaces to be filled")
Signed-off-by: Matthias Schiffer <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/net/ynl/lib/ynl.py')
0 files changed, 0 insertions, 0 deletions
