Use correct ioc and chain bits when creating trbs.

This commit is contained in:
4lDO2
2020-02-15 09:55:36 +01:00
parent bd0892e45d
commit 20e5c02391
+5 -1
View File
@@ -918,6 +918,10 @@ impl Xhci {
|trb, cycle| {
let len = cmp::min(bytes_left, max_transfer_size as usize) as u32;
// set the interrupt on completion (IOC) flag for the last trb.
let ioc = bytes_left <= max_transfer_size as usize;
let chain = !ioc;
trb.normal(
buffer,
len,
@@ -926,7 +930,7 @@ impl Xhci {
0,
false,
true,
false,
chain,
true,
idt,
false,