]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
phy: ti: phy-j721e-wiz.c: Fix the condition for setting P_ENABLE_FORCE
authorAswath Govindraju <a-govindraju@ti.com>
Fri, 28 Jan 2022 08:11:37 +0000 (13:41 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 8 Feb 2022 16:00:03 +0000 (11:00 -0500)
Fix the condition for setting P_ENABLE_FORCE bit, by syncing with the
driver in kernel.

Signed-off-by: Aswath Govindraju <a-govindraju@ti.com>
drivers/phy/ti/phy-j721e-wiz.c

index d74efcd21208051d2e66aeab0b7ffb0c41a2bc93..686cdc6f7c232d5ee239dd7ffb91a5498e4c3446 100644 (file)
@@ -523,7 +523,7 @@ static int wiz_reset_deassert(struct reset_ctl *reset_ctl)
                return ret;
        }
 
-       if (wiz->lane_phy_type[id - 1] == PHY_TYPE_PCIE)
+       if (wiz->lane_phy_type[id - 1] == PHY_TYPE_DP)
                ret = regmap_field_write(wiz->p_enable[id - 1], P_ENABLE);
        else
                ret = regmap_field_write(wiz->p_enable[id - 1], P_ENABLE_FORCE);