Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 361fa055 authored by Russell King's avatar Russell King Committed by Dmitry Torokhov
Browse files

Input: sa1111ps2 - extend test delay



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: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent a12ded48
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);