diff options
| author | Johan Hovold <johan@kernel.org> | 2026-07-16 15:30:29 +0200 |
|---|---|---|
| committer | Andi Shyti <andi.shyti@kernel.org> | 2026-10-10 11:24:49 +0200 |
| commit | 7109df1eafca7163f7714d287df922b4f2c104b2 (patch) | |
| tree | c43267a216d0d9eb60f4d64d35fb72fe32833b61 /tools/lib/python | |
| parent | 0265dfc5d2a8de303561ced996c46b38f95cb4ef (diff) | |
| download | linux-next-7109df1eafca7163f7714d287df922b4f2c104b2.tar.gz linux-next-7109df1eafca7163f7714d287df922b4f2c104b2.zip | |
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 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
