diff options
| author | Alexandre Mergnat <amergnat@baylibre.com> | 2026-11-13 05:29:02 +0000 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-11-19 18:18:50 +0000 |
| commit | b544ca82abb46f2f870d32b3d7cae6ff9d9d1311 (patch) | |
| tree | b37a3657bd76a3bedaef19b660d954b7ab909106 /tools/perf/scripts/python/bin | |
| parent | 29219e5254abb48aa98feb1b5d7e7002bc917cec (diff) | |
regulator: mt6363: Serialize BUCK_TOP key access
The bits that select the FAST mode of the bucks only accept writes
while the BUCK_TOP key is unlocked. mt6363_regulator_set_mode() unlocks
the key, updates the bit and locks the key again, but the regulator
core only locks the buck being changed. When two bucks change mode at
the same time, one of them can lock the key between the unlock and
the mode write of the other. The PMIC then ignores that write, and
regulator_set_mode() returns 0 while the buck stays in its previous
mode. mt6363_va15_set_voltage_sel() unlocks and locks the same key,
so it can also lock it during a buck mode change.
Hold a mutex from each unlock of the key to its relock, in the FAST bit
writes and in the VA15 voltage setter.
Fixes: 3c36965df808 ("regulator: Add support for MediaTek MT6363 SPMI PMIC Regulators")
Signed-off-by: Alexandre Mergnat <amergnat@baylibre.com>
Link: https://patch.msgid.link/20261113-rgp-91-mt6363-key-lock-v2-1-adbd48f0f830@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
