summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorDumitru Ceclan <dumitru.ceclan@analog.com>2026-09-30 01:41:47 +0300
committerSakari Ailus <sakari.ailus@linux.intel.com>2026-10-05 13:46:39 +0300
commit424e37817b94264bc83d393ae45e8752002c4031 (patch)
treedb0314cc072d21bcb556cdd74eb1034013c0f953 /rust/kernel
parent7398f907188d61d093319ae91db9cde2492e061c (diff)
i2c: atr: serialize attach/detach against bus transfers
The attach_addr() and detach_addr() callbacks may need to reconfigure the remote side of the bus. Maxim GMSL deserializers, for example, disable all links but one to reach a serializer at its default address, since all serializers power up at the same address. Transfers on other channels of the same ATR can run concurrently with these callbacks and fail with -EIO while the links are disabled. Take the ATR bus lock around both callbacks, before alias_pairs_lock. i2c_atr_replace_mapping_by_addr() already calls them under this lock, so ATR drivers see no new constraint. Suggested-by: Quentin Freimanis <quentin@q-lab.dev> Signed-off-by: Dumitru Ceclan <dumitru.ceclan@analog.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions