diff options
| author | 2026-07-16 15:30:29 +0200 | |
|---|---|---|
| committer | 2026-10-10 11:24:49 +0200 | |
| commit | 7109df1eafca7163f7714d287df922b4f2c104b2 (patch) | |
| tree | c43267a216d0d9eb60f4d64d35fb72fe32833b61 /scripts/Makefile.thinlto | |
| parent | i2c: qcom-cci: always enable SCL clock stretching (diff) | |
i2c: core: document preference for i2c_get_adapter_by_fwnode()
The i2c subsystem currently blocks during adapter deregistration
whenever there are consumers holding a reference.
Document that i2c_get_adapter_by_fwnode(), which also takes a module
reference, should almost always be preferred over
i2c_find_adapter_by_fwnode() so that an attempt to unload the adapter
module while in use fails gracefully instead of blocking
uninterruptibly.
Note that by implication of_get_i2c_adapter_by_node() is also generally
preferred over of_find_i2c_adapter_by_node().
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://patch.msgid.link/20260716133029.1565853-1-johan@kernel.org
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
