diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2021-04-15 10:46:44 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-04-15 18:07:59 +0300 |
commit | 58eaa7b2d07d3c25e1068b0bf42ca7e7464f4bca (patch) | |
tree | 021b5df6c350dd2a8e9acd81b4e58e70cda46d39 /drivers/spi/spi.c | |
parent | d6371415517700ae225dd1aaa8a35a86a659ada6 (diff) | |
download | linux-58eaa7b2d07d3c25e1068b0bf42ca7e7464f4bca.tar.xz |
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: 9e3a000362aec ("spi: zynqmp: Add pm runtime support")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Tested-by: Quanyang Wang <quanyang.wang@windriver.com>
Link: https://lore.kernel.org/r/20210415074644.24646-1-dinghao.liu@zju.edu.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi.c')
0 files changed, 0 insertions, 0 deletions