summaryrefslogtreecommitdiffstats
path: root/sys/dev/lge
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-07-03 14:00:57 +0000
committerimp <imp@FreeBSD.org>2003-07-03 14:00:57 +0000
commite9df6b7a142eb6576de449a7025b728f30224161 (patch)
tree584c5d95c565a7220199ac4f80f117d25995ead7 /sys/dev/lge
parent2d545c0325ebd6225a22298a5cffc0570a56fb16 (diff)
downloadFreeBSD-src-e9df6b7a142eb6576de449a7025b728f30224161.zip
FreeBSD-src-e9df6b7a142eb6576de449a7025b728f30224161.tar.gz
All current uses of pci_set_powerstate are bogus, at least in theory.
However, they are presently necessary due to bigger bogusness in the pci bus layer not doing the right thing on suspend/resume or on initial device probe. This is exactly the sort of thing that the BURN_BRIDGES option was invented for. Mark all of them as BURN_BRIDGES. As soon as I have the powerstate stuff properly integrated into the pci bus code, I intend to remove all these workarounds.
Diffstat (limited to 'sys/dev/lge')
-rw-r--r--sys/dev/lge/if_lge.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/lge/if_lge.c b/sys/dev/lge/if_lge.c
index 703f46d..34e19de 100644
--- a/sys/dev/lge/if_lge.c
+++ b/sys/dev/lge/if_lge.c
@@ -501,7 +501,7 @@ 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.
*/
@@ -524,7 +524,7 @@ lge_attach(dev)
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