diff options
| author | Dumitru Ceclan <dumitru.ceclan@analog.com> | 2026-09-30 01:41:47 +0300 |
|---|---|---|
| committer | Sakari Ailus <sakari.ailus@linux.intel.com> | 2026-10-05 13:46:39 +0300 |
| commit | 424e37817b94264bc83d393ae45e8752002c4031 (patch) | |
| tree | db0314cc072d21bcb556cdd74eb1034013c0f953 /rust/kernel/alloc | |
| parent | 7398f907188d61d093319ae91db9cde2492e061c (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/alloc')
0 files changed, 0 insertions, 0 deletions
