NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: kern/42114: iwn0: could not lock memory
Maybe this :
/*
* Grab exclusive access to NIC memory.
*/
static void
iwn_mem_lock(struct iwn_softc *sc)
{
uint32_t tmp;
int ntries;
tmp = IWN_READ(sc, IWN_GPIO_CTL);
IWN_WRITE(sc, IWN_GPIO_CTL, tmp | IWN_GPIO_MAC);
/* spin until we actually get the lock */
for (ntries = 0; ntries < 1000; ntries++) {
if ((IWN_READ(sc, IWN_GPIO_CTL) &
(IWN_GPIO_CLOCK | IWN_GPIO_SLEEP)) == IWN_GPIO_CLOCK)
break;
DELAY(10);
}
if (ntries == 1000)
aprint_error_dev(sc->sc_dev, "could not lock memory\n");
}
in /usr/src/sys/dev/pci/if_iwn.c
2009/9/24 David DEMELIER <demelier.david%gmail.com@localhost>:
> The following reply was made to PR kern/42114; it has been noted by GNATS
Home |
Main Index |
Thread Index |
Old Index