]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
hw/arm/sbsa-ref: set 'slots' property of xhci
authorYuquan Wang <wangyuquan1236@phytium.com.cn>
Mon, 17 Jul 2023 10:05:07 +0000 (11:05 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Jul 2023 10:05:07 +0000 (11:05 +0100)
This extends the slots of xhci to 64, since the default xhci_sysbus
just supports one slot.

Signed-off-by: Wang Yuquan <wangyuquan1236@phytium.com.cn>
Signed-off-by: Chen Baozi <chenbaozi@phytium.com.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Tested-by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Message-id: 20230710063750.473510-2-wangyuquan1236@phytium.com.cn
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/sbsa-ref.c

index 64e1cbce17187971990a56ea443706055fafc82b..bc89eb480621b72780641488a656e535e5b9ba47 100644 (file)
@@ -611,6 +611,7 @@ static void create_xhci(const SBSAMachineState *sms)
     hwaddr base = sbsa_ref_memmap[SBSA_XHCI].base;
     int irq = sbsa_ref_irqmap[SBSA_XHCI];
     DeviceState *dev = qdev_new(TYPE_XHCI_SYSBUS);
+    qdev_prop_set_uint32(dev, "slots", XHCI_MAXSLOTS);
 
     sysbus_realize_and_unref(SYS_BUS_DEVICE(dev), &error_fatal);
     sysbus_mmio_map(SYS_BUS_DEVICE(dev), 0, base);