diff options
author | Julian Andres Klode <jak@jak-linux.org> | 2011-09-27 19:01:07 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-29 17:41:39 -0700 |
commit | de839b8f06bc5dd3f5037c4409a720cbb9bf21c3 (patch) | |
tree | ed215da549d02e05a84508c7893cf49ddde3fdfc /drivers/staging/nvec | |
parent | 12b5a55d725579d0978da67f26577224a1c40640 (diff) | |
download | linux-de839b8f06bc5dd3f5037c4409a720cbb9bf21c3.tar.bz2 |
staging: nvec: Add a udelay(100) to nvec_interrupt
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>
Diffstat (limited to 'drivers/staging/nvec')
-rw-r--r-- | drivers/staging/nvec/nvec.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/staging/nvec/nvec.c b/drivers/staging/nvec/nvec.c index 89153446b374..07c8e0952a24 100644 --- a/drivers/staging/nvec/nvec.c +++ b/drivers/staging/nvec/nvec.c @@ -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; } |