Skip to contentSkip to conversation

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

DISCUSSION Jose Abreu 1 participant 1 message Dec 14, 2018

Subsystems (3)
lore
Share & tools
lore

Jose Abreu

author
#0 lore raw

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