From 5b9d953f3be9d4c7c5ef52cf25c14e943eb8ef49 Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Tue, 13 Oct 2020 19:25:40 -0300 Subject: [PATCH] Clear UHCI status register, fixing a flood of "PCI problems?" errors on Linux --- src/usb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/usb.c b/src/usb.c index 067294496..570c36962 100644 --- a/src/usb.c +++ b/src/usb.c @@ -56,6 +56,11 @@ uhci_reg_read(uint16_t addr, void *p) uint8_t ret = 0xff; switch (addr & 0x1f) { + case 0x02: + /* Status */ + ret = 0x00; + break; + case 0x10: case 0x11: case 0x12: case 0x13: /* Port status */ ret = 0x00;