Make sure that debugfs entry works as expected by reading
back the sequence number that was written.
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
int fh;
char buf[32];
int r;
+ uint32_t rb;
if (options.dontwrap)
return 0;
if (options.verbose)
printf("next_seqno set to: 0x%x\n", seqno);
+ r = __read_seqno(&rb);
+ if (r < 0)
+ return r;
+
+ if (rb != seqno) {
+ printf("seqno readback differs rb:0x%x vs w:0x%x\n", rb, seqno);
+ return -1;
+ }
+
return 0;
}