]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
nouveau: move the hotplug ignore to correct place.
authorDave Airlie <airlied@redhat.com>
Tue, 2 Dec 2014 06:27:25 +0000 (16:27 +1000)
committerLuis Henriques <luis.henriques@canonical.com>
Wed, 10 Dec 2014 17:49:38 +0000 (17:49 +0000)
commit 8b62c8c6df08ca567c78afa51aa7bbc554cede06 upstream.

Introduced in b440bde74f, however it was added to
the wrong function in nouveau.

https://bugzilla.kernel.org/show_bug.cgi?id=86011
Cc: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
drivers/gpu/drm/nouveau/nouveau_drm.c

index 0f7addae60d7f1fabc0c6b2b159532a477c0b4ec..84a8b9fb20c88539da09dc6fffe7d3c0bc62a400 100644 (file)
@@ -595,7 +595,6 @@ int nouveau_pmops_suspend(struct device *dev)
 
        pci_save_state(pdev);
        pci_disable_device(pdev);
-       pci_ignore_hotplug(pdev);
        pci_set_power_state(pdev, PCI_D3hot);
        return 0;
 }
@@ -887,6 +886,7 @@ static int nouveau_pmops_runtime_suspend(struct device *dev)
        ret = nouveau_do_suspend(drm_dev, true);
        pci_save_state(pdev);
        pci_disable_device(pdev);
+       pci_ignore_hotplug(pdev);
        pci_set_power_state(pdev, PCI_D3cold);
        drm_dev->switch_power_state = DRM_SWITCH_POWER_DYNAMIC_OFF;
        return ret;