diff options
| author | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-11-09 16:19:00 +0100 |
|---|---|---|
| committer | Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> | 2026-11-10 10:17:42 +0100 |
| commit | af805a1d3d3740b25ba4558d6273cbf65752c19f (patch) | |
| tree | a95cf648706dadf966503e750af44dbac52bb158 | |
| parent | bd60a639b621453fe37b780df4b6d3a13f981f13 (diff) | |
power: sequencing: core: add a note on descriptor serialization
Sashiko reported a race in pwrseq_enable/disable() which is a false
positive. The descriptor structures are not synchronized by power
sequencing core. Instead: the user that requested a descriptor is
responsible for serializing access to it. Add a note to the kerneldoc.
Link: https://patch.msgid.link/20261109-pwrseq-core-desc-kerneldoc-v2-1-653e6b2749f1@oss.qualcomm.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
| -rw-r--r-- | drivers/power/sequencing/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/power/sequencing/core.c b/drivers/power/sequencing/core.c index d7a545bb4ed2..a40021526c8d 100644 --- a/drivers/power/sequencing/core.c +++ b/drivers/power/sequencing/core.c @@ -270,6 +270,11 @@ static void pwrseq_device_put(struct pwrseq_device *pwrseq) * @target: Reference to the target this descriptor allows to control. * @powered_on: Power state set by the holder of the descriptor (not necessarily * corresponding to the actual power state of the device). + * + * Note: The user that requested the descriptor from the provider is + * responsible for the serialization of access to it. Concurrent threads must + * not access the descriptor structure without synchronization as power + * sequencing core does not provide any per-descriptor locking. */ struct pwrseq_desc { struct pwrseq_device *pwrseq; |
