PCI: pcim_iomap_regions() is not managed without pcim_enable_device() ?

From: Jose Abreu <jose.abreu@synopsys.com>
Date: 2018-12-14 11:27:24
Also in: linux-pci

Hi,

pcim_iomap_regions() is suposed to be managed but without a call
to pcim_enable_device() the regions will not be freed upon a
driver removal.

Is this a design choice ?

Currently, I need to use the non-managed pci_enable_device()
because I have custom calls to .suspend() and .resume(), but I
would expect that pcim_iounmap_regions() would not be needed ...

Thanks and Best Regards,
Jose Miguel Abreu
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help