diff options
| author | Ali Tariq <alitariq45892@gmail.com> | 2025-11-30 09:12:51 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2025-12-02 13:37:55 +0000 |
| commit | e1f2e77624dbc35f317efd7e092aa91f7136f3f9 (patch) | |
| tree | 4421201e81cc5f9c1bd833912c341437904a560d /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | cb5c2eb459f4c98d584eaf3d3ea7c3612385d081 (diff) | |
spi: cadence-qspi: Fix runtime PM imbalance in probe
The probe function incorrectly calls pm_runtime_put_autosuspend()
twice in succession at the end of successful probe, dropping two
runtime PM references while only one was acquired earlier with
pm_runtime_get_sync(). This causes a usage count underflow:
cadence-qspi 13010000.spi: Runtime PM usage count underflow!
Remove the first redundant pm_runtime_put_autosuspend() call to
balance the reference count.
Tested on StarFive VisionFive 2 v1.2A board.
Fixes: 30dbc1c8d50f ("spi: cadence-qspi: defer runtime support on socfpga if reset bit is enabled")
Signed-off-by: Ali Tariq <alitariq45892@gmail.com>
Link: https://patch.msgid.link/20251130091251.12120-1-alitariq45892@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
