]> git.karo-electronics.de Git - linux-beck.git/commit
Input: serio_raw - kick clients when disconnecting port
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Oct 2011 01:31:30 +0000 (18:31 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 11 Oct 2011 01:35:18 +0000 (18:35 -0700)
commit8c1c10d5706bbb3b41cb4a5578339d67d3eeffc2
treed6769f259626c171c7941f85a4d00d65a74fb39c
parent85f5b35da86bcd63dd27f0976176169727f96da4
Input: serio_raw - kick clients when disconnecting port

Send SIGIO/POLL_HUP and otherwise wake up waiters when corresponding serio
port is being disconnected. Also check if port is dead in serio_raw_poll
and signal POLLHUP|POLLERR.

This should speed up process of releasing dead devices by userspace
applications.

Reviewed-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/serio_raw.c