]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitd25caf43c6f91b40e59253afd37e0b8b2aa121a1
treed02b20c836b5d6abb1df1b6479664f19d3823bf8
parent7357f898fc05d6539ee88b1b648a3255280a3572
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