From 0e22d2c5501b0289c1b6c04a68b0ec32d05abd0f Mon Sep 17 00:00:00 2001 From: Damien Bergamini Date: Sun, 22 May 2005 18:31:08 +0000 Subject: [PATCH] Clear device-specific PCI register 0x41 during attach and on resume. Appoved by: silby (mentor) --- sys/dev/ipw/if_ipw.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c index af98b8313539..f936b22a12da 100644 --- a/sys/dev/ipw/if_ipw.c +++ b/sys/dev/ipw/if_ipw.c @@ -230,6 +230,8 @@ ipw_attach(device_t dev) pci_set_powerstate(dev, PCI_POWERSTATE_D0); } + pci_write_config(dev, 0x41, 0, 1); + /* enable bus-mastering */ pci_enable_busmaster(dev); @@ -718,6 +720,8 @@ ipw_resume(device_t dev) IPW_LOCK(sc); + pci_write_config(dev, 0x41, 0, 1); + if (ifp->if_flags & IFF_UP) { ifp->if_init(ifp->if_softc); if (ifp->if_flags & IFF_RUNNING)