diff options
author | Warner Losh <imp@FreeBSD.org> | 2003-07-03 14:00:57 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2003-07-03 14:00:57 +0000 |
commit | fa4b32fa800a31351180823a809ef1f36e4270ff (patch) | |
tree | 584c5d95c565a7220199ac4f80f117d25995ead7 /sys/dev/nge | |
parent | f399623004bc8a19b8f076167c9858cb12bcf7a3 (diff) | |
download | src-fa4b32fa800a31351180823a809ef1f36e4270ff.tar.gz src-fa4b32fa800a31351180823a809ef1f36e4270ff.zip |
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.
Notes
Notes:
svn path=/head/; revision=117198
Diffstat (limited to 'sys/dev/nge')
-rw-r--r-- | sys/dev/nge/if_nge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index 5c9e3c6d414a..044fdc2ffffb 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -835,7 +835,7 @@ nge_attach(dev) mtx_init(&sc->nge_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF | MTX_RECURSE); - +#ifndef BURN_BRIDGES /* * Handle power management nonsense. */ @@ -858,7 +858,7 @@ nge_attach(dev) pci_write_config(dev, NGE_PCI_LOMEM, membase, 4); pci_write_config(dev, NGE_PCI_INTLINE, irq, 4); } - +#endif /* * Map control/status registers. */ |