summary refs log tree commit diff
path: root/block/blk-integrity.c
diff options
context:
space:
mode:
authorKornel Dulęba <mindal@semihalf.com>2023-01-26 13:25:35 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-09 11:28:05 +0100
commit70fd5afb4c361e7335b0748fcc463e79665f9100 (patch)
tree2ca4baefd194788020507f6d56abfef39ab07bfb /block/blk-integrity.c
parent78901b10522cdf6badf24acf65a892637596bccc (diff)
downloadlinux-70fd5afb4c361e7335b0748fcc463e79665f9100.tar.gz
net: wwan: t7xx: Fix Runtime PM initialization
[ Upstream commit e3d6d152a1cbdee25f2e3962009a2751b54e2297 ]

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: d10b3a695ba0 ("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>
Diffstat (limited to 'block/blk-integrity.c')
0 files changed, 0 insertions, 0 deletions