File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ impl RxDescriptor {
137
137
138
138
pub ( super ) fn setup ( & mut self , buffer : & [ u8 ] ) {
139
139
self . set_owned ( buffer) ;
140
+ ( 0 ..4 ) . for_each ( |i| unsafe { self . inner_raw . write ( i, 0 ) } ) ;
140
141
}
141
142
142
143
/// Pass ownership to the DMA engine
Original file line number Diff line number Diff line change @@ -148,8 +148,9 @@ impl TxDescriptor {
148
148
( self . inner_raw . read ( 3 ) & TXDESC_3_LD ) == TXDESC_3_LD
149
149
}
150
150
151
- // Placeholder for API parity with f-series descriptor.
152
- pub ( super ) fn setup ( & mut self , _: & [ u8 ] ) { }
151
+ pub ( super ) fn setup ( & mut self , _: & [ u8 ] ) {
152
+ ( 0 ..4 ) . for_each ( |i| unsafe { self . inner_raw . write ( i, 0 ) } ) ;
153
+ }
153
154
154
155
pub ( super ) fn is_owned ( & self ) -> bool {
155
156
( self . inner_raw . read ( 3 ) & TXDESC_3_OWN ) == TXDESC_3_OWN
You can’t perform that action at this time.
0 commit comments