From e9df6b7a142eb6576de449a7025b728f30224161 Mon Sep 17 00:00:00 2001 From: imp Date: Thu, 3 Jul 2003 14:00:57 +0000 Subject: 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. --- sys/dev/txp/if_txp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/txp') diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 542f692..866a120 100644 --- a/sys/dev/txp/if_txp.c +++ b/sys/dev/txp/if_txp.c @@ -223,7 +223,7 @@ txp_attach(dev) mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF | MTX_RECURSE); - +#ifndef BURN_BRIDGES /* * Handle power management nonsense. */ @@ -245,7 +245,7 @@ txp_attach(dev) pci_write_config(dev, TXP_PCI_LOMEM, membase, 4); pci_write_config(dev, TXP_PCI_INTLINE, irq, 4); } - +#endif /* * Map control/status registers. */ -- cgit v1.1