diff options
| author | Ju Nan <junan76@163.com> | 2026-10-15 00:09:17 +0800 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-10-16 15:17:27 +0200 |
| commit | 544b3f8042dd7c18baa48dcb1a393ff8b6742322 (patch) | |
| tree | fbff46fb1489dbdf469d4d44042fc66d77f023eb /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | c1cf10a8896c20f6a09c8980e370c010e8684308 (diff) | |
| download | lwn-544b3f8042dd7c18baa48dcb1a393ff8b6742322.tar.gz lwn-544b3f8042dd7c18baa48dcb1a393ff8b6742322.zip | |
pinctrl: stm32: Fix the unit of the hwspinlock timeout
HWSPNLCK_TIMEOUT is passed to hwspin_lock_timeout_in_atomic(), whose
timeout argument is in milliseconds, not microseconds:
atomic_delay += HWSPINLOCK_RETRY_DELAY_US;
if (atomic_delay > to * 1000)
return -ETIMEDOUT;
The hwspinlock core documents this explicitly:
If the mode is HWLOCK_IN_ATOMIC (called from an atomic context) the
timeout is handled with busy-waiting delays, hence shall not exceed
few msecs.
Fixes: 290a9f937e5a ("pinctrl: stm32: use the hwspin_lock_timeout_in_atomic() API")
Signed-off-by: Ju Nan <junan76@163.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
