]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: mv88e61xx: Finish migration of MV88E61XX_FIXED_PORTS
authorTom Rini <trini@konsulko.com>
Tue, 10 Jan 2023 16:19:40 +0000 (11:19 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jan 2023 17:27:06 +0000 (12:27 -0500)
Set the default for MV88E61XX_FIXED_PORTS to 0x0 in Kconfig, and move
the comment from code to the help to explain what this does.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/phy/Kconfig
drivers/net/phy/mv88e61xx.c

index 580ac8e8fba2f9d4cf4ef6c6acd33be797659657..5eaff053a09cfe8a07c39bb99667e4cea1db6de2 100644 (file)
@@ -62,6 +62,10 @@ config MV88E61XX_PHY_PORTS
 
 config MV88E61XX_FIXED_PORTS
        hex "Bitmask of PHYless serdes Ports"
+       default 0x0
+       help
+         These are ports without PHYs that may be wired directly to other
+         serdes interfaces
 
 endif # MV88E61XX_SWITCH
 
index 7eff37b24499d274e3116df3bbef995d23bc7a06..7ab60164c7745cb535d5cf37ada7f10c9bb3baf4 100644 (file)
 #error Define CONFIG_MV88E61XX_CPU_PORT to the port the CPU is attached to
 #endif
 
-/*
- *  These are ports without PHYs that may be wired directly
- * to other serdes interfaces
- */
-#ifndef CONFIG_MV88E61XX_FIXED_PORTS
-#define CONFIG_MV88E61XX_FIXED_PORTS 0
-#endif
-
 /* ID register values for different switch models */
 #define PORT_SWITCH_ID_6020            0x0200
 #define PORT_SWITCH_ID_6070            0x0700