]> git.baikalelectronics.ru Git - kernel.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)
commit49a39566d916bdd1fb1bd6ae17ff264863ed46f2
treed6769f259626c171c7941f85a4d00d65a74fb39c
parent4e4c09874ef54d419f2aff78ed2be6543b6def58
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