[PATCH for v4.9 LTS 69/87] phy state machine: failsafe leave invalid RUNNING state

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Zefir Kurtisi [ Upstream commit 811a919135b980bac8009d042acdccf10dc1ef5e ] While in RUNNING state, phy_state_machine() checks for link changes by comparing phydev->link before and after calling phy_read_status(). This works as long as it is guaranteed that

[PATCH for v4.9 LTS 69/87] phy state machine: failsafe leave invalid RUNNING state

2017-07-14 Thread Levin, Alexander (Sasha Levin)
From: Zefir Kurtisi [ Upstream commit 811a919135b980bac8009d042acdccf10dc1ef5e ] While in RUNNING state, phy_state_machine() checks for link changes by comparing phydev->link before and after calling phy_read_status(). This works as long as it is guaranteed that phydev->link is never changed