greybus: fix request timeout bug
authorAlex Elder <elder@linaro.org>
Wed, 12 Nov 2014 21:17:51 +0000 (15:17 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 21:11:35 +0000 (13:11 -0800)
commit10520528fee29f29ec3d4d3f651294247b07c0a9
tree4f6f559adc7210eb7d54cbfd38fe02bc30701e78
parent3e9cb4a11831e8c0bf91cd880845b6b35051a484
greybus: fix request timeout bug

This commit changed the timeout behavior for operations:
    6a8732e operation: make the timeout a per-operation thing...

It unfortunately left in place some code that was only
appropriate for per-connection timeouts.  In particular,
the timer for an operation is currently getting started
only if no existing operations are in flight.

Fix that oversight, and schedule an operation's timer
unconditionally.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/operation.c