Skip to contentSkip to conversation

net: phy: remove unused PHY_INIT_TIMEOUT and PHY_FORCE_TIMEOUT

PATCH Applied Heiner Kallweit 4 participants 4 messages Feb 9, 2025 – Feb 12, 2025

Subsystems (3)
lore
Share & tools
lore

Heiner Kallweit

author maintainer
#0 lore raw

PATCH 1/1 net: phy: remove unused PHY_INIT_TIMEOUT and PHY_FORCE_TIMEOUT

Both definitions are unused. Last users have been removed with:

f3ba9d490d6e ("net: s6gmac: remove driver") 2bd229df5e2e ("net: phy: remove state PHY_FORCING")

---
 include/linux/phy.h | 3 ---
 1 file changed, 3 deletions(-)
include/linux/phy.h +0 -3
index 19f076a71..e1237bc51 100644
@@ -303,9 +303,6 @@ static inline long rgmii_clock(int speed)
 	}
 }
 
-#define PHY_INIT_TIMEOUT	100000
-#define PHY_FORCE_TIMEOUT	10
-
 #define PHY_MAX_ADDR	32
 
 /* Used when trying to connect to a specific phy (mii bus id:phy device id) */
Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Heiner Kallweit

Both definitions are unused. Last users have been removed with:

f3ba9d490d6e ("net: s6gmac: remove driver") 2bd229df5e2e ("net: phy: remove state PHY_FORCING")

---
  include/linux/phy.h | 3 ---
  1 file changed, 3 deletions(-)
include/linux/phy.h +0 -0
index 19f076a71..e1237bc51 100644

include/linux/phy.h static inline long rgmii_clock(int speed) · line 308

Quoted 9 lines
include/linux/phy.h +0 -3
@@ -303,9 +303,6 @@ static inline long rgmii_clock(int speed)
  	}
  }
 
-#define PHY_INIT_TIMEOUT	100000
-#define PHY_FORCE_TIMEOUT	10
-
  #define PHY_MAX_ADDR	32
 
  /* Used when trying to connect to a specific phy (mii bus id:phy device id) */
#3 lore raw
In reply to Heiner Kallweit
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Sun, 9 Feb 2025 13:12:44 +0100 you wrote:

Both definitions are unused. Last users have been removed with:

f3ba9d490d6e ("net: s6gmac: remove driver") 2bd229df5e2e ("net: phy: remove state PHY_FORCING")

[...]

Here is the summary with links:
- [net-next] net: phy: remove unused PHY_INIT_TIMEOUT and PHY_FORCE_TIMEOUT

    https://git.kernel.org/netdev/net-next/c/16d11fdaeb22

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html