Message ID | 1462982452-1316-11-git-send-email-ard.biesheuvel@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c b/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c index 1ba358dc0a15..f8bba7fc904a 100644 --- a/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c +++ b/Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c @@ -424,7 +424,7 @@ PciEmulationEntryPoint ( // Unique device path. CopyMem(&Private->DevicePath, &PciIoDevicePathTemplate, sizeof(PciIoDevicePathTemplate)); - Private->DevicePath.AcpiDevicePath.UID = 0; + Private->DevicePath.AcpiDevicePath.UID = 1; // Copy protocol structure CopyMem(&Private->PciIoProtocol, &PciIoTemplate, sizeof(PciIoTemplate));
The PCI emulation code uses the same PCI segment number as the actual PCIe root bridge. Since it does not expose any actual protocols related to root bridges, this is harmless but let's use segment# 1 regardless, to prevent any confusion. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> --- Platforms/AMD/Styx/Drivers/SataControllerDxe/PciEmulation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)