]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: omap: Flush PM QOS work on remove
authorTony Lindgren <tony@atomide.com>
Fri, 28 Oct 2022 11:00:44 +0000 (14:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 02:44:43 +0000 (03:44 +0100)
commita49b2a6256d1637b76c62f2d82f20464661686fc
tree6f09aae4f46e4b71297f915771f4861ed3662797
parent82cb29e2941975e3dc5f6f6c681e34b58e8f49ef
serial: 8250: omap: Flush PM QOS work on remove

Rebinding 8250_omap in a loop will at some point produce a warning for
kernel/power/qos.c:296 cpu_latency_qos_update_request() with error
"cpu_latency_qos_update_request called for unknown object". Let's flush
the possibly pending PM QOS work scheduled from omap8250_runtime_suspend()
before we disable runtime PM.

Fixes: 678329a369f6 ("tty: serial: Add 8250-core based omap driver")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20221028110044.54719-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_omap.c