mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-01 17:00:36 +00:00
Revert parts of r245132 and r245175. We don't need to write to the
IMAN register to clear the pending interrupt status bits. This patch tries to solve problems seen on the MacBook Air, as reported by Johannes Lundberg <johannes@brilliantservice.co.jp> MFC after: 1 week
This commit is contained in:
parent
af85e9b0c4
commit
c6fe3731df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255356
@ -1480,7 +1480,6 @@ void
|
||||
xhci_interrupt(struct xhci_softc *sc)
|
||||
{
|
||||
uint32_t status;
|
||||
uint32_t iman;
|
||||
|
||||
USB_BUS_LOCK(&sc->sc_bus);
|
||||
|
||||
@ -1495,15 +1494,6 @@ xhci_interrupt(struct xhci_softc *sc)
|
||||
DPRINTFN(16, "real interrupt (status=0x%08x)\n", status);
|
||||
|
||||
if (status & XHCI_STS_EINT) {
|
||||
|
||||
/* acknowledge pending event */
|
||||
iman = XREAD4(sc, runt, XHCI_IMAN(0));
|
||||
|
||||
/* reset interrupt */
|
||||
XWRITE4(sc, runt, XHCI_IMAN(0), iman);
|
||||
|
||||
DPRINTFN(16, "real interrupt (iman=0x%08x)\n", iman);
|
||||
|
||||
/* check for event(s) */
|
||||
xhci_interrupt_poll(sc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user