From 7e3e841f694374c0047586b853b0867d1919f76f Mon Sep 17 00:00:00 2001 From: bjorn3 <17426603+bjorn3@users.noreply.github.com> Date: Sat, 30 Aug 2025 22:09:06 +0200 Subject: [PATCH] xhcid: Fix reading EHB flag in received_irq --- xhcid/src/xhci/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xhcid/src/xhci/mod.rs b/xhcid/src/xhci/mod.rs index 24e611cc34..38a447bd1e 100644 --- a/xhcid/src/xhci/mod.rs +++ b/xhcid/src/xhci/mod.rs @@ -1153,14 +1153,14 @@ impl Xhci { trace!( "Successfully received MSI/MSI-X interrupt, IP={}, EHB={}", 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 } else if runtime_regs.ints[0].iman.readf(1) { trace!( "Successfully received INTx# interrupt, IP={}, EHB={}", 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 // a special register to specify whether the IRQ actually came from the xHC.