Merge branch 'qcom-phy-possible'
authorDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 08:56:39 +0000 (08:56 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Mar 2024 08:56:39 +0000 (08:56 +0000)
commitfc809e1e5390d017884a1217fc77577fdf76fe56
tree3d4fe1cbe6f447342b980cf599adf52dfc561d75
parentf29f9199c2d2b3c258f577f438885288016847ed
parentcb28f702960695e26597c332b0e46776e825cc34
Merge branch 'qcom-phy-possible'

Robert Marko says:

====================
net: phy: qcom: qca808x: fill in possible_interfaces

QCA808x does not currently fill in the possible_interfaces.

This leads to Phylink not being aware that it supports 2500Base-X as well
so in cases where it is connected to a DSA switch like MV88E6393 it will
limit that port to phy-mode set in the DTS.

That means that if SGMII is used you are limited to 1G only while if
2500Base-X was set you are limited to 2.5G only.

Populating the possible_interfaces fixes this.

Changes in v2:
* Get rid of the if/else by Russels suggestion in the helper
====================

Signed-off-by: David S. Miller <davem@davemloft.net>