FROMGIT: phy: rockchip-typec: Check for errors from tcphy_phy_init()

The function tcphy_phy_init() could return an error but the callers
weren't checking the return value.  They should.  In at least one case
while testing I saw the message "wait pma ready timeout" which
indicates that tcphy_phy_init() really could return an error and we
should account for it.

TEST=Fake PHY failures and see that things recover now

Change-Id: I4925bbe8a24b00f485a1eaee2feec661512dc0cc
Signed-off-by: Douglas Anderson <>
Reviewed-by: Guenter Roeck <>
Signed-off-by: Kishon Vijay Abraham I <>
(cherry picked from kishon/linux-phy.git fixes
 commit 2fb850092fd95198a0a4746f07b80077d5a3aa37)
1 file changed