Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: phy-mtk-tphy: make the ref clock optional

Sometimes the reference clock of USB3 PHY comes from oscillator
directly, and no need refer to a fixed-clock in DTS anymore
if make it optional.

Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

authored by

Chunfeng Yun and committed by
Kishon Vijay Abraham I
657a9ede 410572ec

+1 -1
+1 -1
drivers/phy/mediatek/phy-mtk-tphy.c
··· 1182 1182 if (tphy->u3phya_ref) 1183 1183 continue; 1184 1184 1185 - instance->ref_clk = devm_clk_get(&phy->dev, "ref"); 1185 + instance->ref_clk = devm_clk_get_optional(&phy->dev, "ref"); 1186 1186 if (IS_ERR(instance->ref_clk)) { 1187 1187 dev_err(dev, "failed to get ref_clk(id-%d)\n", port); 1188 1188 retval = PTR_ERR(instance->ref_clk);