diff options
author | John Keeping <john@metanate.com> | 2022-12-06 12:48:55 +0000 |
---|---|---|
committer | Kever Yang <kever.yang@rock-chips.com> | 2022-12-19 10:56:12 +0800 |
commit | b5194c22585d1f3869b2126a87dabecb5ef2627e (patch) | |
tree | 9f6ccf039513f706d6d710a01275a4936ed5aa97 /drivers | |
parent | 216928c772798609ba2cb01a42b6f89832bb0587 (diff) |
phy: rockchip: handle clock without enable function
If a clock doesn't supply the enable hook, clk_enable() will return
-ENOSYS. In this case the clock is always enabled so there is no error
and the phy initialisation should continue.
Signed-off-by: John Keeping <john@metanate.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index 62b8ba3a4a8..b32a498ea71 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -119,7 +119,7 @@ static int rockchip_usb2phy_init(struct phy *phy) int ret; ret = clk_enable(&priv->phyclk); - if (ret) { + if (ret && ret != -ENOSYS) { dev_err(phy->dev, "failed to enable phyclk (ret=%d)\n", ret); return ret; } |