Input: sa1111ps2 - extend test delay
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 26 Sep 2017 16:57:12 +0000 (09:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Sep 2017 18:52:08 +0000 (11:52 -0700)
A 2us delay is too small for the bus to settle after writing to the
register.  Extend to 10us which gives more reliable results.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/sa1111ps2.c

index f1c036260d2537eeb5e1a52fd9c6ceb6c191adcf..f9e5c793f4f093d888ee34a1ab000830bec2538c 100644 (file)
@@ -212,7 +212,7 @@ static unsigned int ps2_test_one(struct ps2if *ps2if,
 
        writel_relaxed(PS2CR_ENA | mask, ps2if->base + PS2CR);
 
-       udelay(2);
+       udelay(10);
 
        val = readl_relaxed(ps2if->base + PS2STAT);
        return val & (PS2STAT_KBC | PS2STAT_KBD);