]> git.baikalelectronics.ru Git - kernel.git/commit
bus: ti-sysc: Fix warnings for unbind for serial
authorTony Lindgren <tony@atomide.com>
Thu, 12 May 2022 05:30:21 +0000 (08:30 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2022 16:57:00 +0000 (18:57 +0200)
commit66395927e5a853898824a2aa9eeb0a1a24e70d5f
tree32dca06f6c6e50819583e25708acadc8b8b61545
parentab524c2a47d57df0db5948038d8aa3354068ee78
bus: ti-sysc: Fix warnings for unbind for serial

We can get "failed to disable" clock_unprepare warnings on unbind at least
for the serial console device if the unbind is done before the device has
been idled.

As some devices are using deferred idle, we must check the status for
pending idle work to idle the device.

Fixes: 9b7488b02a57 ("bus: ti-sysc: Improve handling for no-reset-on-init and no-idle-on-init")
Cc: Romain Naour <romain.naour@smile.fr>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20220512053021.61650-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/ti-sysc.c