aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorTomi Valkeinen <[email protected]>2024-11-22 14:26:18 +0200
committerWolfram Sang <[email protected]>2025-01-09 11:08:01 +0100
commitcefc479cbb50399dec0c8e996f3539c48a1ee9dd (patch)
treea204f0931e9d7c512aa98b65e06a604de862e7b5 /tools/perf/scripts/python/call-graph-from-sql.py
parent3f8c4f5e9a57868fa107016c81165686d23325f2 (diff)
i2c: atr: Fix client detach
i2c-atr catches the BUS_NOTIFY_DEL_DEVICE event on the bus and removes the translation by calling i2c_atr_detach_client(). However, BUS_NOTIFY_DEL_DEVICE happens when the device is about to be removed from this bus, i.e. before removal, and thus before calling .remove() on the driver. If the driver happens to do any i2c transactions in its remove(), they will fail. Fix this by catching BUS_NOTIFY_REMOVED_DEVICE instead, thus removing the translation only after the device is actually removed. Fixes: a076a860acae ("media: i2c: add I2C Address Translator (ATR) support") Cc: [email protected] Signed-off-by: Tomi Valkeinen <[email protected]> Reviewed-by: Luca Ceresoli <[email protected]> Reviewed-by: Romain Gantois <[email protected]> Tested-by: Romain Gantois <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions