Skip to content
Unverified Commit 58eaa7b2 authored by Dinghao Liu's avatar Dinghao Liu Committed by Mark Brown
Browse files

spi: spi-zynqmp-gqspi: Fix runtime PM imbalance in zynqmp_qspi_probe

There is a PM usage counter decrement after zynqmp_qspi_init_hw()
without any refcount increment, which leads to refcount leak.Add
a refcount increment to balance the refcount. Also set
auto_runtime_pm to resume suspended spi controller.

Fixes: 9e3a0003

 ("spi: zynqmp: Add pm runtime support")
Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Tested-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
Link: https://lore.kernel.org/r/20210415074644.24646-1-dinghao.liu@zju.edu.cn
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent d6371415
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment