]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: timesync: Ensure parallel synchronous calls succeed
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 2 Aug 2016 12:18:28 +0000 (13:18 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Aug 2016 08:59:13 +0000 (10:59 +0200)
commit5cb74976b9025b1a5e6e3bfd15fde0afbaf98ae4
tree8f986e65b40192a174178b73f21de3948582d49a
parent7aa278b771505f8fb85406a891af0b7743710620
greybus: timesync: Ensure parallel synchronous calls succeed

The guard for initiating a new synchronization operation should allow for
that resync to happen in every single state except for INVALID. This patch
fixes by ensuring the guard does just that. With local testing it was
possible to break a sync to a Module. This hasn't been observed in a buglog
but should be fixed anyway.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Acked-by: David Lin <dtwlin@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/timesync.c