Input: at32psif - do not sleep in atomic context
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Dec 2009 06:47:20 +0000 (22:47 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 15 Dec 2009 08:35:08 +0000 (00:35 -0800)
commite47c4f70ea41fd973eec80a9388a1347d3d27896
treebaf261863ea13ccee04e2c150b68abb7034e2546
parenta61cd03827eceefcec19eefc6e1173703fdc5e5d
Input: at32psif - do not sleep in atomic context

We can't use msleep() while holding a spinlock, moreower serio's write()
method is supposed to be useable from inettrupt context. Let's do what
i8042 does and poll the status register every 50 us (with udelay).

Reported-by: Marjan Fojkar <marjan@pajkc.eu>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/at32psif.c