mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
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: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
a12ded48b3
commit
361fa055f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user