Skip to content

Commit

Permalink
Merge pull request #112 from slaclab/ESROGUE-655
Browse files Browse the repository at this point in the history
axi_version.c & dma_common.c bug fixes
  • Loading branch information
ruck314 authored Feb 14, 2024
2 parents 9ddec57 + 9e6d170 commit 8d3aa5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/driver/axi_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand Down
4 changes: 3 additions & 1 deletion common/driver/dma_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -993,7 +993,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
}


Expand Down

0 comments on commit 8d3aa5a

Please sign in to comment.