net: wireless: bcm4329: Fix interrupt enabling for level interrupt
authorDmitry Shmidt <dimitrysh@google.com>
Sat, 28 Aug 2010 00:38:01 +0000 (17:38 -0700)
committerColin Cross <ccross@android.com>
Thu, 30 Sep 2010 00:49:46 +0000 (17:49 -0700)
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
drivers/net/wireless/bcm4329/dhd_sdio.c

index 8bdadb3fc1dbcfb623e74e4df70cfb35adaaf889..7b54f60e6f7243e462da722cd83661346c0fbbe5 100644 (file)
@@ -4154,9 +4154,6 @@ dhdsdio_dpc(dhd_bus_t *bus)
                if (newstatus) {
                        W_SDREG(newstatus, &regs->intstatus, retries);
                        bus->f1regdata++;
-#if defined(OOB_INTR_ONLY)
-                       bcmsdh_oob_intr_set(1);
-#endif
                }
        }
 
@@ -4222,6 +4219,10 @@ dhdsdio_dpc(dhd_bus_t *bus)
 
 clkwait:
 
+#if defined(OOB_INTR_ONLY)
+       bcmsdh_oob_intr_set(1);
+#endif
+
        /* Re-enable interrupts to detect new device events (mailbox, rx frame)
         * or clock availability.  (Allows tx loop to check ipend if desired.)
         * (Unless register access seems hosed, as we may not be able to ACK...)