Re: [PATCH 5/8] hw/pci-host/designware: Keep host reference in DesignwarePCIEViewport

2024-08-18 Thread Gustavo Romero
Hi Phil, I think the title of this patch is also a bit misleading. The host reference is not present only in DesigwarePCIEViewport, it's also present, for instance, in DesignwarePCIERoot after the previous patch. This is also a back-pointer to host, so how about something like: "Add a back-point

[PATCH 5/8] hw/pci-host/designware: Keep host reference in DesignwarePCIEViewport

2023-10-12 Thread Philippe Mathieu-Daudé
The PCI root function is irrelevant for the ViewPort; only a reference to the host bridge is required. Since we can directly access the PCI bus, remove the pci_get_bus() call. Signed-off-by: Philippe Mathieu-Daudé --- include/hw/pci-host/designware.h | 2 +- hw/pci-host/designware.c | 7