Dinghao Liu 4800a98bcf PCI: tegra: Fix runtime PM imbalance in pex_ep_event_pex_rst_deassert()
[ Upstream commit 5859c926d1f052ee61b5815b14658875c14f6243 ]

pm_runtime_get_sync() will increase the runtime PM counter
even it returns an error. Thus a pairing decrement is needed
to prevent refcount leak. Fix this by replacing this API with
pm_runtime_resume_and_get(), which will not change the runtime
PM counter on error.

Link: https://lore.kernel.org/r/20210408072700.15791-1-dinghao.liu@zju.edu.cn
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-22 11:40:52 +02:00
..
2020-08-05 18:24:16 -05:00
2020-08-05 18:24:22 -05:00
2020-07-29 14:25:18 -05:00
2020-10-22 12:41:00 -07:00
2020-08-05 18:24:22 -05:00
2020-10-22 12:41:00 -07:00
2020-10-22 12:41:00 -07:00
2020-10-21 09:58:36 -05:00
2021-05-22 11:40:52 +02:00
2020-08-05 18:23:14 -05:00
2021-05-14 09:49:57 +02:00