summaryrefslogtreecommitdiffstats
path: root/sys/dev/lge
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-06-28 20:26:21 +0000
committerimp <imp@FreeBSD.org>2004-06-28 20:26:21 +0000
commit61364cc86985fcfada6a818e1b48f59f91793aa2 (patch)
treea848db56387b1bdbfade2cf2d05b4a68c07fd355 /sys/dev/lge
parentdc0d070947944ef9cf45f4ee922c982e0b8423ff (diff)
downloadFreeBSD-src-61364cc86985fcfada6a818e1b48f59f91793aa2.zip
FreeBSD-src-61364cc86985fcfada6a818e1b48f59f91793aa2.tar.gz
Remove the setting of the pci config variables on power state changes.
The bus does this now.
Diffstat (limited to 'sys/dev/lge')
-rw-r--r--sys/dev/lge/if_lge.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c
index 09e677b..16a702a 100644
--- a/sys/dev/lge/if_lge.c
+++ b/sys/dev/lge/if_lge.c
@@ -473,30 +473,6 @@ lge_attach(dev)
sc = device_get_softc(dev);
unit = device_get_unit(dev);
bzero(sc, sizeof(struct lge_softc));
-#ifndef BURN_BRIDGES
- /*
- * Handle power management nonsense.
- */
- if (pci_get_powerstate(dev) != PCI_POWERSTATE_D0) {
- u_int32_t iobase, membase, irq;
-
- /* Save important PCI config data. */
- iobase = pci_read_config(dev, LGE_PCI_LOIO, 4);
- membase = pci_read_config(dev, LGE_PCI_LOMEM, 4);
- irq = pci_read_config(dev, LGE_PCI_INTLINE, 4);
-
- /* Reset the power state. */
- printf("lge%d: chip is in D%d power mode "
- "-- setting to D0\n", unit,
- pci_get_powerstate(dev));
- pci_set_powerstate(dev, PCI_POWERSTATE_D0);
-
- /* Restore PCI config data. */
- pci_write_config(dev, LGE_PCI_LOIO, iobase, 4);
- pci_write_config(dev, LGE_PCI_LOMEM, membase, 4);
- pci_write_config(dev, LGE_PCI_INTLINE, irq, 4);
- }
-#endif
/*
* Map control/status registers.
*/
OpenPOWER on IntegriCloud