diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index e91ccecaebbe..cee7c1c17d1f 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -1814,6 +1815,10 @@ static int rockchip_usb2phy_probe(struct platform_device *pdev) return -EINVAL; } + pm_runtime_set_active(dev); + pm_runtime_enable(dev); + pm_runtime_get_sync(dev); + rphy->clk = of_clk_get_by_name(np, "phyclk"); if (!IS_ERR(rphy->clk)) { clk_prepare_enable(rphy->clk); @@ -1892,6 +1897,8 @@ next_child: put_child: of_node_put(child_np); disable_clks: + pm_runtime_put_sync(dev); + pm_runtime_disable(dev); if (rphy->clk) { clk_disable_unprepare(rphy->clk); clk_put(rphy->clk);