phy: marvell: fix several minor bugs in comphy_probe
authorIgal Liberman <igall@marvell.com>
Tue, 22 Aug 2017 08:14:22 +0000 (11:14 +0300)
committerStefan Roese <sr@denx.de>
Thu, 29 Apr 2021 05:45:24 +0000 (07:45 +0200)
commitc2bf42f5fd7867d4a33cc644a8f45090d7553440
tree3c1e9349b32f6446418ee27ab67f40df5ed08113
parent3e69b4abffdd2b11b9d382e3a21414d6b7640efe
phy: marvell: fix several minor bugs in comphy_probe

If fdtdec_get_int can't find speed, set COMPHY_SPEED_INVALID
If fdtdec_get_int can't find type, set COMPHY_TYPE_INVALID
Move the error print if phy-type is invalid
Add continue to the probe loop (in a case of invalid phy)
Cosmetic changes

Change-Id: I0c61b40bfe685437426fe907942ed338b7845378
Signed-off-by: Igal Liberman <igall@marvell.com>
drivers/phy/marvell/comphy_core.c