From: Bryan O'Donoghue Date: Thu, 15 Oct 2015 15:10:44 +0000 (+0100) Subject: greybus: loopback: add tracker variables to hold firmware timestamps X-Git-Tag: v5.15~12752^2~378^2~21^2~1112 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e6227ee64782e1cda88a70512ac2b0ae8fda2203;p=platform%2Fkernel%2Flinux-starfive.git greybus: loopback: add tracker variables to hold firmware timestamps This patch adds tracker variables to hold the incoming firmware derived timestamps where apbridge_latency_ts will contain the APBridge's view of the UniPro turn-around time and gpbridge_latency_ts will contain the GPBridge's view of it's own internal latency. Both values are reported in microseconds. Signed-off-by: Bryan O'Donoghue Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/loopback.c b/drivers/staging/greybus/loopback.c index 95cba82..d2a88af 100644 --- a/drivers/staging/greybus/loopback.c +++ b/drivers/staging/greybus/loopback.c @@ -83,6 +83,8 @@ struct gb_loopback { u32 iteration_count; u64 elapsed_nsecs; u32 error; + u32 apbridge_latency_ts; + u32 gpbridge_latency_ts; }; #define GB_LOOPBACK_FIFO_DEFAULT 8192