i2c: i801: Use wait_event_timeout to wait for interrupts
authorJean Delvare <jdelvare@suse.de>
Wed, 12 Nov 2014 09:20:40 +0000 (10:20 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Nov 2014 15:06:38 +0000 (16:06 +0100)
commitb3b8df97723d84c826d7419bf727a711a4efa068
tree6764c08e2fe71343364fc916e287fdc3854277b6
parent0285f8f5fd7cf7f458e13d9189eb735dacc244b5
i2c: i801: Use wait_event_timeout to wait for interrupts

Some systems have been reported to have trouble with interrupts. Use
wait_event_timeout() instead of wait_event() so we don't get stuck in
that case, and log the problem.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-i801.c