Skip to content

Commit 5827b83

Browse files
authored
Merge pull request #1 from sy-c/syc-patch-1
reset cru moved after link mask set
2 parents d633bbd + 9d8bef9 commit 5827b83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Cru/CruDmaChannel.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ CruDmaChannel::~CruDmaChannel()
8989

9090
void CruDmaChannel::deviceStartDma()
9191
{
92-
resetCru();
93-
9492
// Enable links
9593
uint32_t mask = 0xFfffFfff;
9694
for (const auto& link : mLinks) {
@@ -128,6 +126,9 @@ void CruDmaChannel::deviceStartDma()
128126
}
129127
}
130128

129+
// Reset CRU (should be done after link mask set)
130+
resetCru();
131+
131132
// Initialize link queues
132133
for (auto &link : mLinks) {
133134
link.queue.clear();

0 commit comments

Comments
 (0)