[PATCH 039/132] of: of_mdio: Correct loop scanning logic