mirror of
https://github.com/torvalds/linux.git
synced 2026-05-12 16:18:45 +02:00
Move the spin unlocking to after reading the contents of the PMIF_SWINF_(x)_RDATA_31_0 register in pmif_spmi_read_cmd(): since this is the only register that we can read to get the data from all of the arbitered busses, a concurrent request for reading (especially on a busy arbiter) will show a race condition and a unexpected or corrupted value may be read. Doing the entire read sequence while spin locked guarantees that concurrent access to the arbiter doesn't happen. Fixes: |
||
|---|---|---|
| .. | ||
| hisi-spmi-controller.c | ||
| Kconfig | ||
| Makefile | ||
| spmi-apple-controller.c | ||
| spmi-devres.c | ||
| spmi-mtk-pmif.c | ||
| spmi-pmic-arb.c | ||
| spmi.c | ||