net: phy: remove states PHY_STARTING and PHY_PENDING
Both states aren't used. Most likely they result from an idea that never materialized. So remove them. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b08794a922
commit
899a3cbbf7
@@ -46,9 +46,7 @@ static const char *phy_state_to_str(enum phy_state st)
|
||||
{
|
||||
switch (st) {
|
||||
PHY_STATE_STR(DOWN)
|
||||
PHY_STATE_STR(STARTING)
|
||||
PHY_STATE_STR(READY)
|
||||
PHY_STATE_STR(PENDING)
|
||||
PHY_STATE_STR(UP)
|
||||
PHY_STATE_STR(RUNNING)
|
||||
PHY_STATE_STR(NOLINK)
|
||||
@@ -852,9 +850,6 @@ void phy_start(struct phy_device *phydev)
|
||||
mutex_lock(&phydev->lock);
|
||||
|
||||
switch (phydev->state) {
|
||||
case PHY_STARTING:
|
||||
phydev->state = PHY_PENDING;
|
||||
break;
|
||||
case PHY_READY:
|
||||
phydev->state = PHY_UP;
|
||||
break;
|
||||
@@ -902,9 +897,7 @@ void phy_state_machine(struct work_struct *work)
|
||||
|
||||
switch (phydev->state) {
|
||||
case PHY_DOWN:
|
||||
case PHY_STARTING:
|
||||
case PHY_READY:
|
||||
case PHY_PENDING:
|
||||
break;
|
||||
case PHY_UP:
|
||||
needs_aneg = true;
|
||||
|
Reference in New Issue
Block a user