Skip to content

Commit 5338c4c

Browse files
committed
Remove these bits, we shouldn't have to set them.
Force-write RXDESC3
1 parent d716770 commit 5338c4c

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

src/dma/mod.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,6 @@ impl<'rx, 'tx> EthernetDMA<'rx, 'tx> {
351351
.set_bit()
352352
.tbu()
353353
.set_bit()
354-
.eti()
355-
.set_bit()
356-
.eri()
357-
.set_bit()
358354
});
359355

360356
if status.fbe().bit_is_set() {

src/dma/rx/h_descriptor.rs

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,9 @@ impl RxDescriptor {
171171

172172
// RXDESC does not contain buffer length, it is set
173173
// in register INSERT_HERE instead. The size of all
174-
// buffers is verified by [`TxRing`](super::TxRing)
175-
176-
self.inner_raw.modify(3, |w| {
177-
// BUF2 is not valid
178-
let w = w & !(RXDESC_3_BUF2V);
179-
// BUF1 is valid
180-
let w = w | RXDESC_3_BUF1V;
181-
w
182-
});
174+
// buffers is verified by [`RxRing`](super::RxRing)
175+
176+
self.inner_raw.write(3, RXDESC_3_BUF1V);
183177
}
184178
}
185179

0 commit comments

Comments
 (0)