]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commitdiff
agp/intel: remove restore in resume
authorZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 14 Sep 2009 02:47:06 +0000 (10:47 +0800)
committerDave Airlie <airlied@linux.ie>
Mon, 14 Sep 2009 09:17:44 +0000 (19:17 +1000)
As early pci resume has already restored config for host
bridge and graphics device, don't need to restore it again,
This removes an original order hack for graphics device restore.

This fixed the resume hang issue found by Alan Stern on 845G,
caused by extra config restore on graphics device.

Cc: Stable Team <stable@kernel.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
drivers/char/agp/intel-agp.c

index 9bc3a0b82b962909a2b453ee76a42a3bcd9f8795..5eeaeeeaa2cc7b4b33c733d46a6852dd1552a56e 100644 (file)
@@ -2451,15 +2451,6 @@ static int agp_intel_resume(struct pci_dev *pdev)
        struct agp_bridge_data *bridge = pci_get_drvdata(pdev);
        int ret_val;
 
-       pci_restore_state(pdev);
-
-       /* We should restore our graphics device's config space,
-        * as host bridge (00:00) resumes before graphics device (02:00),
-        * then our access to its pci space can work right.
-        */
-       if (intel_private.pcidev)
-               pci_restore_state(intel_private.pcidev);
-
        if (bridge->driver == &intel_generic_driver)
                intel_configure();
        else if (bridge->driver == &intel_850_driver)