summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorChristian Kohlschütter <christian@kohlschutter.com>2022-08-18 15:46:47 +0300
committerMark Brown <broonie@kernel.org>2022-08-18 17:02:07 +0300
commit8a866d527ac0441c0eb14a991fa11358b476b11d (patch)
tree111b2fe8e387d492e27a1db1d3d857826e9ff5e2 /tools/perf/scripts/python/exported-sql-viewer.py
parentee94aff2628b18afdb0b6b175e568657bdaead59 (diff)
downloadlinux-8a866d527ac0441c0eb14a991fa11358b476b11d.tar.xz
regulator: core: Resolve supply name earlier to prevent double-init
Previously, an unresolved regulator supply reference upon calling regulator_register on an always-on or boot-on regulator caused set_machine_constraints to be called twice. This in turn may initialize the regulator twice, leading to voltage glitches that are timing-dependent. A simple, unrelated configuration change may be enough to hide this problem, only to be surfaced by chance. One such example is the SD-Card voltage regulator in a NanoPI R4S that would not initialize reliably unless the registration flow was just complex enough to allow the regulator to properly reset between calls. Fix this by re-arranging regulator_register, trying resolve the regulator's supply early enough that set_machine_constraints does not need to be called twice. Signed-off-by: Christian Kohlschütter <christian@kohlschutter.com> Link: https://lore.kernel.org/r/20220818124646.6005-1-christian@kohlschutter.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions