Commit 70fd5afb authored by Kornel Dulęba's avatar Kornel Dulęba Committed by Greg Kroah-Hartman
Browse files

net: wwan: t7xx: Fix Runtime PM initialization



[ Upstream commit e3d6d152 ]

For PCI devices the Runtime PM refcount is incremented twice:
1. During device enumeration with a call to pm_runtime_forbid.
2. Just before a driver probe logic is called.
Because of that in order to enable Runtime PM on a given device
we have to call both pm_runtime_allow and pm_runtime_put_noidle,
once it's ready to be runtime suspended.
The former was missing causing the pm refcount to never reach 0.

Fixes: d10b3a69 ("net: wwan: t7xx: Runtime PM")
Signed-off-by: default avatarKornel Dulęba <mindal@semihalf.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 78901b10
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment