Files
linux/drivers
Kornel Dulęba 70fd5afb4c net: wwan: t7xx: Fix Runtime PM initialization
[ Upstream commit e3d6d152a1 ]

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: d10b3a695b ("net: wwan: t7xx: Runtime PM")
Signed-off-by: Kornel Dulęba <mindal@semihalf.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-09 11:28:05 +01:00
..
2023-02-01 08:34:34 +01:00
2023-01-07 11:11:39 +01:00
2022-12-31 13:33:12 +01:00
2022-12-31 13:32:09 +01:00