phy: marvell: cp110: initialize only enabled UTMI units
authorOmri Itach <omrii@marvell.com>
Thu, 6 Apr 2017 09:54:16 +0000 (12:54 +0300)
committerStefan Roese <sr@denx.de>
Thu, 29 Apr 2021 05:45:24 +0000 (07:45 +0200)
commit22bc868e4919684f83eb2959ea1163cb06877ddf
treed02b20c836b5d6abb1df1b6479664f19d3823bf8
parent89351ba4c8afae71314228003dcb0fbba809d372
phy: marvell: cp110: initialize only enabled UTMI units

UTMI should be initialized only for enabled device tree nodes.

This fix overrides current internal configuration array
entry with the next DT entry data if error is detected
during the current DT entry parsing or the current port
is disabled.

This way the internal configuration structure will only
contain valid ports information obtained from the DT.

Change-Id: I9c43c6a5d234e15ae9005d1c9bc983fc1f3544b8
Signed-off-by: Omri Itach <omrii@marvell.com>
Signed-off-by: Ken Ma <make@marvell.com>
drivers/phy/marvell/comphy_cp110.c