]> Git Repo - J-u-boot.git/commit - drivers/net/phy/phy.c
net: phy: xilinx: Break while loop over ethernet phy
authorMichal Simek <[email protected]>
Mon, 26 Apr 2021 12:26:48 +0000 (14:26 +0200)
committerMichal Simek <[email protected]>
Thu, 29 Apr 2021 08:05:56 +0000 (10:05 +0200)
commit0a9f0e0d00e0e8b2c5b6a2ae844c5ebca684616f
tree0b81e3e7f46eaa9513f516aa6df8696583777665
parent0b0705b5ed7865a1c86a3ed6ece82346e5f2e57f
net: phy: xilinx: Break while loop over ethernet phy

The commit 6c993815bbea ("net: phy: xilinx: Be compatible with live OF
tree") change driver behavior to while loop which wasn't correct because
the driver was looping over again and again. The reason was that
ofnode_valid() is taking 0 as correct value.
Fix it by changing while loop to ofnode_for_each_subnode() which is only
loop over available nodes.

Fixes: 6c993815bbea ("net: phy: xilinx: Be compatible with live OF tree")
Signed-off-by: Michal Simek <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
drivers/net/phy/phy.c
This page took 0.033679 seconds and 4 git commands to generate.