Commit 5e8bb0c
spi: cadence-quadspi: fix runtime pm and clock imbalance on unbind
Make sure to balance the runtime PM usage count before returning on
probe failure (to allow the controller to suspend after a probe
deferral) and to only drop the usage count on driver unbind to avoid a
clock disable imbalance.
Also restore the autosuspend setting.
Fixes: 0578a6d ("spi: spi-cadence-quadspi: add runtime pm support")
Cc: stable@vger.kernel.org # 6.7
Cc: Dhruva Gole <d-gole@ti.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://patch.msgid.link/20260421125354.1534871-5-johan@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 233db2c commit 5e8bb0c
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1860 | 1860 | | |
1861 | 1861 | | |
1862 | 1862 | | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | 1863 | | |
1868 | 1864 | | |
1869 | 1865 | | |
| |||
1962 | 1958 | | |
1963 | 1959 | | |
1964 | 1960 | | |
1965 | | - | |
1966 | 1961 | | |
1967 | 1962 | | |
1968 | 1963 | | |
| 1964 | + | |
| 1965 | + | |
1969 | 1966 | | |
1970 | 1967 | | |
1971 | 1968 | | |
| |||
1996 | 1993 | | |
1997 | 1994 | | |
1998 | 1995 | | |
1999 | | - | |
| 1996 | + | |
2000 | 1997 | | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
2001 | 2002 | | |
2002 | 2003 | | |
2003 | 2004 | | |
| |||
2033 | 2034 | | |
2034 | 2035 | | |
2035 | 2036 | | |
2036 | | - | |
2037 | 2037 | | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
2038 | 2041 | | |
2039 | 2042 | | |
2040 | 2043 | | |
| |||
0 commit comments