]> git.karo-electronics.de Git - karo-tx-linux.git/commit
greybus: gb_operation: replace timeout workqueue
authorPerry Hung <perry@leaflabs.com>
Wed, 14 Jan 2015 21:19:26 +0000 (16:19 -0500)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 16 Jan 2015 19:09:45 +0000 (11:09 -0800)
commit7bad4e85b8f988a182cce7949591923e091a509e
tree6036e6772d7e1cc9845e2e43c0c7e70ee71979a7
parent76590b1e882f4c275df695ae0641fb2d059cd9c3
greybus: gb_operation: replace timeout workqueue

If an operation is issued and the response never comes back,
gb_operation_timeout() cancels the operation but never wakes up the
waiter in gb_operation_request_send().

This patch removes the timeout workqueue and changes the request wait to
wait_for_completion_interruptible_timeout(), with timeout set to
OPERATION_TIMEOUT_DEFAULT.

Signed-off-by: Perry Hung <perry@leaflabs.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/operation.c
drivers/staging/greybus/operation.h