]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 14 Dec 2022 12:59:27 +0000 (13:59 +0100)
commit00decf86f9c20d0fe4602746cdbaeb5e700a4fe8
tree68a499e6d2c79af341dabc8d762027898152c868
parent262f8e0402b42ebaec3e4d70212c23afb5c05c2f
serial: 8250: omap: Flush PM QOS work on remove

[ Upstream commit d0b68629bd2fb61e0171a62f2e8da3db322f5cf6 ]

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: 61929cf0169d ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 26db1cd5191e7844a456c69468c1806407c8ecb2)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
drivers/tty/serial/8250/8250_omap.c