]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
staging: nvec: Add a udelay(100) to nvec_interrupt
authorJulian Andres Klode <jak@jak-linux.org>
Tue, 27 Sep 2011 17:01:07 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 30 Sep 2011 00:41:39 +0000 (17:41 -0700)
As the comment indicates, adding that udelay seems to
improve the stability of the communication, although
it is not known why this is the case.

Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/nvec/nvec.c

index 89153446b3743260f2ff1389b5e9b08a80a351fc..07c8e0952a24aeaaf615b2d2e1dbd37af4632020 100644 (file)
@@ -656,6 +656,15 @@ static irqreturn_t nvec_interrupt(int irq, void *dev)
                status & RCVD ? " RCVD" : "",
                status & RNW ? " RNW" : "");
 
+
+       /*
+        * TODO: A correct fix needs to be found for this.
+        *
+        * We experience less incomplete messages with this delay than without
+        * it, but we don't know why. Help is appreciated.
+        */
+       udelay(100);
+
        return IRQ_HANDLED;
 }