ipq40xx: fix PHY subsystem compilation (phy_interface_num_ports())
authorRafał Miłecki <rafal@milecki.pl>
Wed, 7 Feb 2024 08:17:50 +0000 (09:17 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Wed, 7 Feb 2024 08:19:30 +0000 (09:19 +0100)
commit9e41117953e31ffe355416e962ecf0e000dc594d
tree78dbd540ea855e4d2a8c4f0ec68660bd3152e50c
parentc51d49ba3974ff9e350261bc023970f1d809962e
ipq40xx: fix PHY subsystem compilation (phy_interface_num_ports())

Fixes:
drivers/net/phy/phy-core.c: In function 'phy_interface_num_ports':
drivers/net/phy/phy-core.c:107:9: error: enumeration value 'PHY_INTERFACE_MODE_PSGMII' not handled in switch [-Werror=switch]
  107 |         switch (interface) {
      |         ^~~~~~

Fixes: 8a7f667fb53e ("kernel: 5.15: backport v6.1 PHY changes required for Aquantia")
Fixes: https://github.com/openwrt/openwrt/issues/14560
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/ipq40xx/patches-5.15/704-net-phy-define-PSGMII-PHY-interface-mode.patch