Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Documentation/driver-api: Update pcim_enable_device()

pcim_enable_device() is not related anymore to switching the mode of
operation of any functions. It merely sets up a devres callback for
automatically disabling the PCI device on driver detach.

Adjust the function's documentation.

Signed-off-by: Philipp Stanner <phasta@kernel.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250519112959.25487-4-phasta@kernel.org

authored by

Philipp Stanner and committed by
Krzysztof Wilczyński
b4fb90fb 51f6aec9

+1 -1
+1 -1
Documentation/driver-api/driver-model/devres.rst
··· 391 391 devm_pci_remap_cfgspace() : ioremap PCI configuration space 392 392 devm_pci_remap_cfg_resource() : ioremap PCI configuration space resource 393 393 394 - pcim_enable_device() : after success, some PCI ops become managed 394 + pcim_enable_device() : after success, the PCI device gets disabled automatically on driver detach 395 395 pcim_iomap() : do iomap() on a single BAR 396 396 pcim_iomap_regions() : do request_region() and iomap() on multiple BARs 397 397 pcim_iomap_table() : array of mapped addresses indexed by BAR