diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index 467ddddec0f9..b7b041c5a5c1 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -399,6 +399,13 @@ int phy_calibrate(struct phy *phy) if (!phy || !phy->ops->calibrate) return 0; + if (phy->dev.parent && + of_device_is_compatible(phy->dev.parent->of_node, + "rockchip,rv1126-usb2phy")) { + ret = phy->ops->calibrate(phy); + return ret; + } + mutex_lock(&phy->mutex); ret = phy->ops->calibrate(phy); mutex_unlock(&phy->mutex);