Home
last modified time | relevance | path

Searched hist:a2d522ff (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/memory/
H A Dmtk-smi.ca2d522ff Mon Nov 23 04:21:18 CST 2020 Zhang Qilong <zhangqilong3@huawei.com> memory: mtk-smi: Fix PM usage counter unbalance in mtk_smi ops

pm_runtime_get_sync will increment pm usage counter
even it failed. Forgetting to putting operation will
result in reference leak here. We fix it by replacing
it with pm_runtime_resume_and_get to keep usage counter
balanced.

Fixes: 4f0a1a1ae3519 ("memory: mtk-smi: Invoke pm runtime_callback to enable clocks")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201123102118.3866195-1-zhangqilong3@huawei.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>