Commit 5f89fc76 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Zheng Zengkai
Browse files

i2c: rcar: fix PM ref counts in probe error paths

stable inclusion
from stable-v5.10.121
commit c9542f5f901ba425e7eff0361b81d49dea0d5259
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L6CQ

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



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

[ Upstream commit 3fe2ec59 ]

We have to take care of ID_P_PM_BLOCKED when bailing out during probe.

Fixes: 7ee24eb5 ("i2c: rcar: disable PM in multi-master mode")
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarWolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 8d68456e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment