linux/drivers/pci/pwrctrl
Johan Hovold 62ef2a96fe PCI/pwrctrl: tc9563: Take i2c adapter module reference
The i2c subsystem currently blocks during adapter deregistration whenever
there are consumers holding a reference.

Switch to using of_get_i2c_adapter_by_node() which also takes a reference
to the adapter module so that an attempt to unload the module while in use
fails gracefully instead of blocking uninterruptibly.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260716132532.1565340-1-johan@kernel.org
History 2026-07-20 05:56:55 -05:00
..
core.c pci-v7.2-changes 2026-06-24 12:48:43 -07:00
generic.c pci-v7.1-changes 2026-04-15 14:41:21 -07:00
Kconfig PCI/pwrctrl: generic: Rename pci-pwrctrl-slot as generic 2026-03-18 12:10:51 -05:00
Makefile PCI/pwrctrl: generic: Rename pci-pwrctrl-slot as generic 2026-03-18 12:10:51 -05:00
pci-pwrctrl-pwrseq.c PCI/pwrctrl: Do not power off on pwrctrl device removal 2026-03-23 15:25:32 -05:00
pci-pwrctrl-tc9563.c PCI/pwrctrl: tc9563: Take i2c adapter module reference 2026-07-20 05:56:55 -05:00