Commit f7d00a9
SoC: rt5682s: Disable jack detection interrupt during suspend
The rt5682s driver switches its regmap to cache-only when the
device suspends and back to regular mode on resume. When the
jack detect interrupt fires rt5682s_irq() schedules the jack
detect work. This can result in invalid reads from the regmap
in cache-only mode if the work runs before the device has
resumed:
[ 19.672162] rt5682s 2-001a: ASoC: error at soc_component_read_no_lock on rt5682s.2-001a for register: [0x000000f0] -16
Disable the jack detection interrupt during suspend and
re-enable it on resume. The driver already schedules the
jack detection work on resume, so any state change during
suspend is still handled.
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Link: https://lore.kernel.org/r/20230209012002.1.Ib4d6481f1d38a6e7b8c9e04913c02ca88c216cf6@changeid
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent d227116 commit f7d00a9
2 files changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2895 | 2895 | | |
2896 | 2896 | | |
2897 | 2897 | | |
| 2898 | + | |
| 2899 | + | |
| 2900 | + | |
2898 | 2901 | | |
2899 | 2902 | | |
2900 | 2903 | | |
| |||
2919 | 2922 | | |
2920 | 2923 | | |
2921 | 2924 | | |
| 2925 | + | |
| 2926 | + | |
| 2927 | + | |
2922 | 2928 | | |
2923 | 2929 | | |
2924 | 2930 | | |
| |||
3259 | 3265 | | |
3260 | 3266 | | |
3261 | 3267 | | |
3262 | | - | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
3263 | 3271 | | |
3264 | 3272 | | |
3265 | 3273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1472 | 1472 | | |
1473 | 1473 | | |
1474 | 1474 | | |
| 1475 | + | |
1475 | 1476 | | |
1476 | 1477 | | |
1477 | 1478 | | |
| |||
0 commit comments