From 709576bb305ad43af426b0feb29dc3f18b28a8eb Mon Sep 17 00:00:00 2001 From: kettenis Date: Sun, 1 Jan 2023 21:45:40 +0000 Subject: [PATCH] Clear status bits when we receive a host system error. Otherwise the interrupt keeps firing even if the hos controller has been declared dead. ok mpi@ --- sys/dev/usb/xhci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/usb/xhci.c b/sys/dev/usb/xhci.c index 05f5479aa6f..518a569240d 100644 --- a/sys/dev/usb/xhci.c +++ b/sys/dev/usb/xhci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xhci.c,v 1.127 2022/12/12 19:18:25 kettenis Exp $ */ +/* $OpenBSD: xhci.c,v 1.128 2023/01/01 21:45:40 kettenis Exp $ */ /* * Copyright (c) 2014-2015 Martin Pieuchot @@ -628,6 +628,7 @@ xhci_intr1(struct xhci_softc *sc) if (intrs & XHCI_STS_HSE) { printf("%s: host system error\n", DEVNAME(sc)); sc->sc_bus.dying = 1; + XOWRITE4(sc, XHCI_USBSTS, intrs); return (1); } -- 2.20.1