From 5fc652c632330a6208184abf9f22cc7276e377d0 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Mon, 12 Feb 2024 15:47:47 -0800 Subject: [PATCH 1/2] gitHash is 40 element array, not 60 elements --- common/driver/axi_version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/driver/axi_version.c b/common/driver/axi_version.c index a89c39e..f71aece 100755 --- a/common/driver/axi_version.c +++ b/common/driver/axi_version.c @@ -51,7 +51,7 @@ void AxiVersion_Read(struct DmaDevice *dev, void * base, struct AxiVersion *aVer aVer->deviceId = ioread32(&(reg->deviceId)); - for (x=0; x < 64; x++) + for (x=0; x < 40; x++) ((uint32_t *)aVer->gitHash)[x] = ioread32(&(reg->gitHash[x])); for (x=0; x < 4; x++) From 9e6d170baf33cc271f6b73d7325382201eaccc26 Mon Sep 17 00:00:00 2001 From: Larry Ruckman Date: Mon, 12 Feb 2024 16:14:24 -0800 Subject: [PATCH 2/2] bug fix for 'seq_file: buggy .next function Dma_SeqNext [datadev] did not update position index' error msg --- common/driver/dma_common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/driver/dma_common.c b/common/driver/dma_common.c index db390b2..adab515 100755 --- a/common/driver/dma_common.c +++ b/common/driver/dma_common.c @@ -1003,7 +1003,9 @@ void * Dma_SeqStart(struct seq_file *s, loff_t *pos) { // Sequence next, always return NULL void * Dma_SeqNext(struct seq_file *s, void *v, loff_t *pos) { - return NULL; + loff_t *position = pos; + (*position)++; + return NULL; // or return pointer to next item }