]> git.baikalelectronics.ru Git - uboot.git/commit
phy: rockchip: handle clock without enable function
authorJohn Keeping <john@metanate.com>
Tue, 6 Dec 2022 12:48:55 +0000 (12:48 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Mon, 19 Dec 2022 02:56:12 +0000 (10:56 +0800)
commit35b0999c495bb196193e85a79136ae1d0599333b
tree9f6ccf039513f706d6d710a01275a4936ed5aa97
parent3ad1fe3328f65db2356d28bdbaff1adf22395cb9
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>
drivers/phy/rockchip/phy-rockchip-inno-usb2.c