]> www.infradead.org Git - users/willy/xarray.git/commit
Documentation: devres: fix error about PCI devres
authorPhilipp Stanner <pstanner@redhat.com>
Fri, 9 Aug 2024 09:52:48 +0000 (11:52 +0200)
committerJonathan Corbet <corbet@lwn.net>
Fri, 16 Aug 2024 22:29:53 +0000 (16:29 -0600)
commit8839adc33ff7a5464dbfc17de8afe5fedf9c6029
treec031bff260f5cf80a4a385845c12d231270a20f6
parent1f5e3920b5e45cef81a31a1dcf8e1d0f615840fa
Documentation: devres: fix error about PCI devres

The documentation states that pcim_enable_device() will make "all PCI
ops" managed. This is totally false, only a small subset of PCI
functions become managed that way. Implicating otherwise has caused at
least one bug so far, namely in commit 8558de401b5f ("drm/vboxvideo: use
managed pci functions").

Change the function summary so the functions dangerous behavior becomes
obvious.

Signed-off-by: Philipp Stanner <pstanner@redhat.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20240809095248.14220-2-pstanner@redhat.com
Documentation/driver-api/driver-model/devres.rst