Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 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>

authored by

Tony Lindgren and committed by
Greg Kroah-Hartman
d0b68629 e3f0c638

+1
+1
drivers/tty/serial/8250/8250_omap.c
··· 1468 1468 1469 1469 pm_runtime_dont_use_autosuspend(&pdev->dev); 1470 1470 pm_runtime_put_sync(&pdev->dev); 1471 + flush_work(&priv->qos_work); 1471 1472 pm_runtime_disable(&pdev->dev); 1472 1473 serial8250_unregister_port(priv->line); 1473 1474 cpu_latency_qos_remove_request(&priv->pm_qos_request);