NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/51661: wi(4) fails to attach when Orinocco PCMCIA adapter inserted



The following reply was made to PR kern/51661; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: kern/51661: wi(4) fails to attach when Orinocco PCMCIA adapter
 inserted
Date: Mon, 28 Nov 2016 06:28:30 +0000

 On Sat, Nov 26, 2016 at 11:25:01PM +0000, venture37%geeklan.co.uk@localhost wrote:
  > When a card is inserted, the kernel reports:
  > wi0 at pcmcia0 function 0: <Lucent Technologies, WaveLAN/IEEE, Version 01.01, >
  > wi0:wi0: wi_cmd: busy bit won't clear.
 
 This message is preceded by
 
    /* wait for the busy bit to clear */
    for (i = 500; i > 0; i--) {	/* 5s */
 	if ((CSR_READ_2(sc, WI_COMMAND) & WI_CMD_BUSY) == 0)
 		break;
 	if (sc->sc_invalid)
 		return ENXIO;
 	DELAY(1000);	/* 1 m sec */
    }
 
 So that "5s" is a lie - it's really 0.5s. In case it's really supposed
 to be 5 seconds, try changing the 500 to 5000... can't really hurt...
 though it probably won't help either...
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index