Commit e666c874 authored by Tony Lindgren's avatar Tony Lindgren Committed by sanglipeng
Browse files

serial: 8250: omap: Fix unpaired pm_runtime_put_sync() in omap8250_remove()

stable inclusion
from stable-v5.10.156
commit d833cba201adf9237168e19f0d76e4d7aa69f303
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7MCG1

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d833cba201adf9237168e19f0d76e4d7aa69f303



--------------------------------

[ Upstream commit e3f0c638 ]

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 4e0f5cc6 ("serial: 8250_omap: Fix probe and remove for PM
runtime").

Fixes: 4e0f5cc6 ("serial: 8250_omap: Fix probe and remove for PM runtime")
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Depends-on: dd8088d5 ("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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 849db93c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment