If you have a USB-attached athn(4) device, please test the diff below
and report back to me with a dmesg.

Index: dev/ic/ar5008.c
===================================================================
RCS file: /home/mdempsky/anoncvs/cvs/src/sys/dev/ic/ar5008.c,v
retrieving revision 1.19
diff -u -p -r1.19 ar5008.c
--- dev/ic/ar5008.c     6 Jan 2011 07:27:15 -0000       1.19
+++ dev/ic/ar5008.c     17 Jun 2011 05:06:59 -0000
@@ -357,7 +357,7 @@ ar5008_gpio_read(struct athn_softc *sc, 
 {
        KASSERT(pin < sc->ngpiopins);
        if ((sc->flags & ATHN_FLAG_USB) && !AR_SREV_9271(sc))
-               return (!(AR_READ(sc, AR7010_GPIO_IN) >> pin) & 1);
+               return (!((AR_READ(sc, AR7010_GPIO_IN) >> pin) & 1));
        return ((AR_READ(sc, AR_GPIO_IN_OUT) >> (sc->ngpiopins + pin)) & 1);
 }

Reply via email to