]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
greybus: timesync: Implement a retry mechanism
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 2 Aug 2016 12:18:30 +0000 (13:18 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 3 Aug 2016 08:59:13 +0000 (10:59 +0200)
commit7aa278b771505f8fb85406a891af0b7743710620
tree97dfe33bfd4edae9af578f2e0cab3b894939d541
parentb6fc2876a060fdd89f6dd55a4923580983092b0f
greybus: timesync: Implement a retry mechanism

It's possible the AP could miss an incoming SVC timesync pulse i.e. the AP
could have interrupts switched off for long enough that one SVC GPIO strobe
ends up over-lapping another one. TimeSync should be able to deal with this
type of transitory failure by retrying a failed synchronous TimeSync resync
up to 'n' number of times. For this patch 'n' has been set to five, which
is a hand-wavy choice that 'feels' right.

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