]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: move clk enable/disable in init/exit
authorAlexey Romanov <avromanov@salutedevices.com>
Thu, 5 Oct 2023 08:54:25 +0000 (11:54 +0300)
committerNeil Armstrong <neil.armstrong@linaro.org>
Thu, 12 Oct 2023 11:39:41 +0000 (13:39 +0200)
commit80f45c3b3606ad68710223bcee596b06f86e1a3b
treeffc77dd19116b99d761aee15564b0ea08806dc1a
parent881714983eec3701f1617190f92c945a27e664a8
phy: move clk enable/disable in init/exit

It is better to place clk_enable() in phy_meson_g12a_usb2_init()
and clk_disable() in phy_meson_g12a_usb2_exit().

For more detailed information, please see comments in the review of
a similar driver in the Linux Kernel:

https://lore.kernel.org/all/CAFBinCCEhobbyKHuKDWzTYCQWgNT1-e8=7hMhq1mvT6CuEOjGw@mail.gmail.com/

Signed-off-by: Alexey Romanov <avromanov@salutedevices.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20231005085434.74755-5-avromanov@salutedevices.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
drivers/phy/meson-g12a-usb2.c