xhcid: Fix reading EHB flag in received_irq
This commit is contained in:
@@ -1153,14 +1153,14 @@ impl Xhci {
|
|||||||
trace!(
|
trace!(
|
||||||
"Successfully received MSI/MSI-X interrupt, IP={}, EHB={}",
|
"Successfully received MSI/MSI-X interrupt, IP={}, EHB={}",
|
||||||
runtime_regs.ints[0].iman.readf(1),
|
runtime_regs.ints[0].iman.readf(1),
|
||||||
runtime_regs.ints[0].erdp_low.readf(3)
|
runtime_regs.ints[0].erdp_low.readf(1 << 3)
|
||||||
);
|
);
|
||||||
true
|
true
|
||||||
} else if runtime_regs.ints[0].iman.readf(1) {
|
} else if runtime_regs.ints[0].iman.readf(1) {
|
||||||
trace!(
|
trace!(
|
||||||
"Successfully received INTx# interrupt, IP={}, EHB={}",
|
"Successfully received INTx# interrupt, IP={}, EHB={}",
|
||||||
runtime_regs.ints[0].iman.readf(1),
|
runtime_regs.ints[0].iman.readf(1),
|
||||||
runtime_regs.ints[0].erdp_low.readf(3)
|
runtime_regs.ints[0].erdp_low.readf(1 << 3)
|
||||||
);
|
);
|
||||||
// If MSI and/or MSI-X are not used, the interrupt might have to be shared, and thus there is
|
// If MSI and/or MSI-X are not used, the interrupt might have to be shared, and thus there is
|
||||||
// a special register to specify whether the IRQ actually came from the xHC.
|
// a special register to specify whether the IRQ actually came from the xHC.
|
||||||
|
|||||||
Reference in New Issue
Block a user