mirror of
https://github.com/torvalds/linux.git
synced 2024-10-30 16:51:45 +00:00
[AGPGART] Suspend/Resume improvements for ATI AGP
Based on patches in the Ubuntu kernel. Signed-off-by: Ben Collins <bcollins@ubuntu.com> Signed-off-by: Dave Jones <davej@redhat.com>
This commit is contained in:
parent
89d17b9604
commit
a4aec26223
@ -245,19 +245,21 @@ static int ati_configure(void)
|
||||
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
static int agp_ati_resume(struct pci_dev *dev)
|
||||
{
|
||||
pci_restore_state(dev);
|
||||
|
||||
return ati_configure();
|
||||
}
|
||||
|
||||
static int agp_ati_suspend(struct pci_dev *dev, pm_message_t state)
|
||||
{
|
||||
pci_save_state(dev);
|
||||
pci_set_power_state (pdev, 3);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int agp_ati_resume(struct pci_dev *dev)
|
||||
{
|
||||
pci_set_power_state (pdev, 0);
|
||||
pci_restore_state(dev);
|
||||
|
||||
return ati_configure();
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
@ -545,8 +547,8 @@ static struct pci_driver agp_ati_pci_driver = {
|
||||
.probe = agp_ati_probe,
|
||||
.remove = agp_ati_remove,
|
||||
#ifdef CONFIG_PM
|
||||
.resume = agp_ati_resume,
|
||||
.suspend = agp_ati_suspend,
|
||||
.resume = agp_ati_resume,
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user