Skip to content

Commit 84d2717

Browse files
mszyprowgregkh
authored andcommitted
phy: exynos5-usbdrd: Calibrating makes sense only for USB2.0 PHY
[ Upstream commit dcbabfe ] PHY calibration is needed only for USB2.0 (UTMI) PHY, so skip calling calibration code when phy_calibrate() is called for USB3.0 (PIPE3) PHY. Fixes: d8c80bb ("phy: exynos5-usbdrd: Calibrate LOS levels for exynos5420/5800") Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Krzysztof Kozlowski <krzk@kernel.org> Link: https://lore.kernel.org/r/20200708133800.3336-1-m.szyprowski@samsung.com Signed-off-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f275958 commit 84d2717

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/phy/samsung/phy-exynos5-usbdrd.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,9 @@ static int exynos5_usbdrd_phy_calibrate(struct phy *phy)
717717
struct phy_usb_instance *inst = phy_get_drvdata(phy);
718718
struct exynos5_usbdrd_phy *phy_drd = to_usbdrd_phy(inst);
719719

720-
return exynos5420_usbdrd_phy_calibrate(phy_drd);
720+
if (inst->phy_cfg->id == EXYNOS5_DRDPHY_UTMI)
721+
return exynos5420_usbdrd_phy_calibrate(phy_drd);
722+
return 0;
721723
}
722724

723725
static const struct phy_ops exynos5_usbdrd_phy_ops = {

0 commit comments

Comments
 (0)