Skip to content

Commit

Permalink
Use cfgCont when setting contEnable
Browse files Browse the repository at this point in the history
  • Loading branch information
JJL772 committed Feb 25, 2025
1 parent 7f49ba2 commit 98ebc9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/driver/axis_gen2.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,8 @@ void AxisG2_Init(struct DmaDevice *dev) {
writel(0x1, &(reg->fifoReset));
writel(0x0, &(reg->fifoReset));

// Enable continuous mode and disable drop mode
writel(0x1, &(reg->contEnable));
// (Optionally) Enable continuous mode and disable drop mode
writel(dev->cfgCont ? 1 : 0, &(reg->contEnable));
writel(0x0, &(reg->dropEnable));

// Set IRQ holdoff time if supported by hardware version
Expand Down

0 comments on commit 98ebc9c

Please sign in to comment.