ipq40xx: add PSGMII PHY mode to phylink_get_linkmodes()
authorRobert Marko <robimarko@gmail.com>
Sat, 6 May 2023 10:45:56 +0000 (12:45 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 12 May 2023 01:15:34 +0000 (03:15 +0200)
commit1f8c8bca5ea77c79850ea6b0b95204ccade69495
treeb1e8a198b107c69e2f2aa2e65907eba923e9db5b
parent7a2a645801886e150269a8d00c748105774892f3
ipq40xx: add PSGMII PHY mode to phylink_get_linkmodes()

Upstream commit ("net: phylink: add generic validate implementation") was
backported, however PSGMII PHY mode patch for ipq40xx was not updated to
add PSGMII to phylink_get_linkmodes() so the following warning would be
printed during kernel compilation:
drivers/net/phy/phylink.c: In function 'phylink_get_linkmodes':
drivers/net/phy/phylink.c:360:9: error: enumeration value 'PHY_INTERFACE_MODE_PSGMII' not handled in switch [-Werror=switch]
  360 |         switch (interface) {
      |         ^~~~~~

Resolve the warning by adding the PSGMII mode to phylink_get_linkmodes().

Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/ipq40xx/patches-5.15/704-net-phy-define-PSGMII-PHY-interface-mode.patch