On Tue, Sep 02, 2025 at 11:34:42AM +0800, jinfeng.wang.cn@windriver.com wrote:
- Issue
on branch 6.6.y using board Stratix10.
I encountered cadence-qspi ff8d2000.spi: Unbalanced pm_runtime_enable! error.
After reverting these two commitsi on branch 6.6.y: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/driv... https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/driv... Unbalanced pm_runtime_enable! error does not appear.
- Analyse of the codes
These two commits are cherry-picked from master branch, the commit id on master branch is b07f349d1864 and 04a8ff1bc351. 04a8ff1bc351 fix b07f349d1864. b07f349d1864 fix 86401132d7bb. 86401132d7bb fix 0578a6dbfe75. 6.6.y only backport b07f349d1864 and 04a8ff1bc351, but does not backport 0578a6dbfe75 and 86401132d7bb. And the backport of b07f349d1864 differs with the original patch. So there is Unbalanced pm_runtime_enable error. If revert the backport for b07f349d1864 and 04a8ff1bc351, there is no error. If backport 0578a6dbfe75 and 86401132d7bb, there is hang during booting. I didn't find the cause of the hang. Since 0578a6dbfe75 and 86401132d7bb are not backported, b07f349d1864 and 04a8ff1bc351 are not needed. How about reverting the bakcports cdfb20e4b34a and 1af6d1696ca4 for b07f349d1864 and 04a8ff1bc351 on 6.6?
If you wish to have things reverted, please send the reverts with the reasons why.
thanks,
greg k-h