]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: imx8mp: add shared clk gate for usb suspend clk
authorLi Jun <jun.li@nxp.com>
Fri, 30 Sep 2022 14:54:22 +0000 (22:54 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:33:09 +0000 (13:33 +0100)
commit4a12f9087533bb56829a6c3e79ff4de1efcbf9b7
tree3ab03684ea60c47d9c75dfbf0db775d04f5a515e
parentd7eed2b101f0c796db235e4228d72f0178ad7720
clk: imx: imx8mp: add shared clk gate for usb suspend clk

commit 93045bb787f9cbebd094ad9e0419d23518733628 upstream.

32K usb suspend clock gate is shared with usb_root_clk, this
shared clock gate was initially defined only for usb suspend
clock, usb suspend clk is kept on while system is active or
system sleep with usb wakeup enabled, so usb root clock is
fine with this situation; with the commit fa74a191e79e
("clk: imx8mp: fix usb_root_clk parent"), this clock gate is
changed to be for usb root clock, but usb root clock will
be off while usb is suspended, so usb suspend clock will be
gated too, this cause some usb functionalities will not work,
so define this clock to be a shared clock gate to conform with
the real HW status.

Fixes: 98bd5c776da53 ("clk: imx: Add support for i.MX8MP clock driver")
Cc: stable@vger.kernel.org # v5.19+
Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Link: https://lore.kernel.org/r/1664549663-20364-2-git-send-email-jun.li@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/clk/imx/clk-imx8mp.c