From: Jose Abreu Subject: PCI: pcim_iomap_regions() is not managed without pcim_enable_device() ? Date: Fri, 14 Dec 2018 11:27:19 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: "netdev@vger.kernel.org" To: Return-path: Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:47542 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727634AbeLNL1Y (ORCPT ); Fri, 14 Dec 2018 06:27:24 -0500 Sender: netdev-owner@vger.kernel.org List-ID: 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