File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -316,11 +316,13 @@ static __maybe_unused int mdio_bus_phy_resume(struct device *dev)
316316
317317 phydev -> suspended_by_mdio_bus = 0 ;
318318
319- /* If we manged to get here with the PHY state machine in a state neither
320- * PHY_HALTED nor PHY_READY this is an indication that something went wrong
321- * and we should most likely be using MAC managed PM and we are not.
319+ /* If we managed to get here with the PHY state machine in a state
320+ * neither PHY_HALTED, PHY_READY nor PHY_UP, this is an indication
321+ * that something went wrong and we should most likely be using
322+ * MAC managed PM, but we are not.
322323 */
323- WARN_ON (phydev -> state != PHY_HALTED && phydev -> state != PHY_READY );
324+ WARN_ON (phydev -> state != PHY_HALTED && phydev -> state != PHY_READY &&
325+ phydev -> state != PHY_UP );
324326
325327 ret = phy_init_hw (phydev );
326328 if (ret < 0 )
You can’t perform that action at this time.
0 commit comments