summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2019-06-04 17:02:34 -0400
committerDavid S. Miller <davem@davemloft.net>2019-06-05 20:43:46 -0400
commit2bd229df5e2ecbc13909f71dbd196fced1d533ca (patch)
treeffc285f56f42009b0411fd1ec98a06df58a28650 /include/linux/phy.h
parentfe3475af3bdf38fac78787ec2fe9eedaf2518188 (diff)
net: phy: remove state PHY_FORCING
In the early days of phylib we had a functionality that changed to the next lower speed in fixed mode if no link was established after a certain period of time. This functionality has been removed years ago, and state PHY_FORCING isn't needed any longer. Instead we can go from UP to RUNNING or NOLINK directly (same as in autoneg mode). Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r--include/linux/phy.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index dc4b51060ebc..8caaf76685cd 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -297,12 +297,6 @@ struct phy_device *mdiobus_scan(struct mii_bus *bus, int addr);
297 * - irq or timer will set RUNNING if link comes back 297 * - irq or timer will set RUNNING if link comes back
298 * - phy_stop moves to HALTED 298 * - phy_stop moves to HALTED
299 * 299 *
300 * FORCING: PHY is being configured with forced settings
301 * - if link is up, move to RUNNING
302 * - If link is down, we drop to the next highest setting, and
303 * retry (FORCING) after a timeout
304 * - phy_stop moves to HALTED
305 *
306 * RUNNING: PHY is currently up, running, and possibly sending 300 * RUNNING: PHY is currently up, running, and possibly sending
307 * and/or receiving packets 301 * and/or receiving packets
308 * - irq or timer will set NOLINK if link goes down 302 * - irq or timer will set NOLINK if link goes down
@@ -319,7 +313,6 @@ enum phy_state {
319 PHY_UP, 313 PHY_UP,
320 PHY_RUNNING, 314 PHY_RUNNING,
321 PHY_NOLINK, 315 PHY_NOLINK,
322 PHY_FORCING,
323}; 316};
324 317
325/** 318/**
@@ -347,8 +340,6 @@ struct phy_c45_device_ids {
347 * loopback_enabled: Set true if this phy has been loopbacked successfully. 340 * loopback_enabled: Set true if this phy has been loopbacked successfully.
348 * state: state of the PHY for management purposes 341 * state: state of the PHY for management purposes
349 * dev_flags: Device-specific flags used by the PHY driver. 342 * dev_flags: Device-specific flags used by the PHY driver.
350 * link_timeout: The number of timer firings to wait before the
351 * giving up on the current attempt at acquiring a link
352 * irq: IRQ number of the PHY's interrupt (-1 if none) 343 * irq: IRQ number of the PHY's interrupt (-1 if none)
353 * phy_timer: The timer for handling the state machine 344 * phy_timer: The timer for handling the state machine
354 * attached_dev: The attached enet driver's device instance ptr 345 * attached_dev: The attached enet driver's device instance ptr
@@ -416,8 +407,6 @@ struct phy_device {
416 /* Energy efficient ethernet modes which should be prohibited */ 407 /* Energy efficient ethernet modes which should be prohibited */
417 u32 eee_broken_modes; 408 u32 eee_broken_modes;
418 409
419 int link_timeout;
420
421#ifdef CONFIG_LED_TRIGGER_PHY 410#ifdef CONFIG_LED_TRIGGER_PHY
422 struct phy_led_trigger *phy_led_triggers; 411 struct phy_led_trigger *phy_led_triggers;
423 unsigned int phy_num_led_triggers; 412 unsigned int phy_num_led_triggers;