summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorRomain Gantois <romain.gantois@bootlin.com>2025-03-06 17:23:24 +0100
committerWolfram Sang <wsa+renesas@sang-engineering.com>2025-04-18 23:33:25 +0200
commit3ec29d51b546f69de0b0d10642c9aaaf5e3704eb (patch)
tree5bf476729a526beba52508662b4b2851263bb265 /scripts/lib/kdoc/kdoc_parser.py
parent666be28145afbcde4a1223e6bc398664abdf8bec (diff)
media: i2c: ds90ub960: Protect alias_use_mask with a mutex
The aliased_addrs list represents the occupation of an RX port's hardware alias table. This list and the underlying hardware table are only accessed in the attach/detach_client() callbacks. These functions are only called from a bus notifier handler in i2c-atr.c, which is always called with the notifier chain's semaphore held. This indirectly prevents concurrent access to the aliased_addrs list. However, more explicit and direct locking is preferable. Moreover, with the introduction of dynamic address translation in a future patch, the attach/detach_client() callbacks will be called from outside of the notifier chain's read section. Introduce a mutex to protect access to the aliased_addrs list and its underlying hardware table. Tested-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Signed-off-by: Romain Gantois <romain.gantois@bootlin.com> Acked-by: Andi Shyti <andi.shyti@kernel.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions