aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/loopback.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-23 13:04:14 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-09 11:58:56 +0100
commitdbec27298b0df86eaa6bc02e5df0ce55ec7d97f2 (patch)
treeaaeae8679724ce4bdbe08e94e24b4660d0545ec9 /drivers/staging/greybus/loopback.c
parentMerge 4.10-rc7 into staging-next (diff)
downloadlinux-dev-dbec27298b0df86eaa6bc02e5df0ce55ec7d97f2.tar.xz
linux-dev-dbec27298b0df86eaa6bc02e5df0ce55ec7d97f2.zip
staging: greybus: operation: add generic timeout support
Add a struct timer_list to struct gb_operation and use that to implement generic operation timeouts. This simplifies the synchronous operation handling somewhat while also providing a generic timeout mechanism that drivers can use for asynchronous operations. Signed-off-by: Johan Hovold <johan@kernel.org> Acked-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/greybus/loopback.c')
-rw-r--r--drivers/staging/greybus/loopback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c
index a8329daf1e57..43692b86e0b2 100644
--- a/drivers/staging/greybus/loopback.c
+++ b/drivers/staging/greybus/loopback.c
@@ -629,6 +629,7 @@ static int gb_loopback_async_operation(struct gb_loopback *gb, int type,
mutex_lock(&gb->mutex);
ret = gb_operation_request_send(operation,
gb_loopback_async_operation_callback,
+ 0,
GFP_KERNEL);
if (ret)
goto error;