]> git.baikalelectronics.ru Git - kernel.git/commit
serial: 8250: omap: Fix unpaired pm_runtime_put_sync() in omap8250_remove()
authorTony Lindgren <tony@atomide.com>
Fri, 28 Oct 2022 10:58:13 +0000 (13:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Nov 2022 16:42:13 +0000 (17:42 +0100)
commitdc3c096544e7ebca6e6b2b56bff675627ec85d2e
treeb136ddffd3d6637bb85bcabba3204f58a872a630
parentfc784f5ae460f38ab0c632ec427f710b799f0160
serial: 8250: omap: Fix unpaired pm_runtime_put_sync() in omap8250_remove()

[ Upstream commit 82cb29e2941975e3dc5f6f6c681e34b58e8f49ef ]

On remove, we get an error for "Runtime PM usage count underflow!". I guess
this driver is mostly built-in, and this issue has gone unnoticed for a
while. Somehow I did not catch this issue with my earlier fix done with
commit 15b547f27447 ("serial: 8250_omap: Fix probe and remove for PM
runtime").

Fixes: 15b547f27447 ("serial: 8250_omap: Fix probe and remove for PM runtime")
Signed-off-by: Tony Lindgren <tony@atomide.com>
Depends-on: a26109b2e63e ("PM: runtime: Add pm_runtime_resume_and_get to deal with usage counter")
Link: https://lore.kernel.org/r/20221028105813.54290-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/tty/serial/8250/8250_omap.c