mbox series

[0/3] pci_endpoint_test: Fix module removal/insertion cycle

Message ID 20171011084438.8296-1-kishon@ti.com
Headers show
Series pci_endpoint_test: Fix module removal/insertion cycle | expand

Message

Kishon Vijay Abraham I Oct. 11, 2017, 8:44 a.m. UTC
This series fixes module removal/insertion cycle of pci_endpoint_test.

Without this series, when trying to modprobe pci_endpoint_test after
rmmod pci_endpoint_test results in the following errors.

pci-endpoint-test 0000:01:00.0: BAR 0: can't reserve [mem 0x20204600-0x202046ff]
pci-endpoint-test 0000:01:00.0: Cannot obtain PCI resources
pci-endpoint-test: probe of 0000:01:00.0 failed with error -16

Kishon Vijay Abraham I (3):
  misc: pci_endpoint_test: Fix failure path return values in probe
  misc: pci_endpoint_test: Fix pci_endpoint_test not releasing resources
    on remove
  misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi

 drivers/misc/pci_endpoint_test.c | 22 ++++++++++++++++++++--
 1 file changed, 20 insertions(+), 2 deletions(-)

Comments

Bjorn Helgaas Oct. 17, 2017, 7:16 p.m. UTC | #1
On Wed, Oct 11, 2017 at 02:14:35PM +0530, Kishon Vijay Abraham I wrote:
> This series fixes module removal/insertion cycle of pci_endpoint_test.
> 
> Without this series, when trying to modprobe pci_endpoint_test after
> rmmod pci_endpoint_test results in the following errors.
> 
> pci-endpoint-test 0000:01:00.0: BAR 0: can't reserve [mem 0x20204600-0x202046ff]
> pci-endpoint-test 0000:01:00.0: Cannot obtain PCI resources
> pci-endpoint-test: probe of 0000:01:00.0 failed with error -16
> 
> Kishon Vijay Abraham I (3):
>   misc: pci_endpoint_test: Fix failure path return values in probe
>   misc: pci_endpoint_test: Fix pci_endpoint_test not releasing resources
>     on remove
>   misc: pci_endpoint_test: Fix BUG_ON error during pci_disable_msi
> 
>  drivers/misc/pci_endpoint_test.c | 22 ++++++++++++++++++++--
>  1 file changed, 20 insertions(+), 2 deletions(-)

Applied to pci/endpoint for v4.15, thanks!