From 812999f480d27f77d771d386abb995aaa0070c78 Mon Sep 17 00:00:00 2001 From: OBattler Date: Thu, 23 Apr 2020 14:42:32 +0200 Subject: [PATCH] The PIIX code now also initializes the USB device on the PIIX3, fixes #713. --- src/intel_piix.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/intel_piix.c b/src/intel_piix.c index 33061c4dd..64f5c6c0a 100644 --- a/src/intel_piix.c +++ b/src/intel_piix.c @@ -1182,6 +1182,9 @@ static void dev->bm[0] = device_add_inst(&sff8038i_device, 1); dev->bm[1] = device_add_inst(&sff8038i_device, 2); + if (dev->type >= 3) + dev->usb = device_add(&usb_device); + if (dev->type > 3) { dev->nvr = device_add(&piix4_nvr_device); dev->smbus = device_add(&piix4_smbus_device); @@ -1191,7 +1194,6 @@ static void acpi_set_nvr(dev->acpi, dev->nvr); dev->ddma = device_add(&ddma_device); - dev->usb = device_add(&usb_device); } else timer_add(&dev->fast_off_timer, piix_fast_off_count, dev, 0);