From fbb05dc0d18c5c70bc0e16a76c7e36342fee456c Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 17 Aug 2025 14:22:05 -0600 Subject: [PATCH] sandbox: Use the exact mapping size for PCI in pmc Update the size to the expected size of the device's mapping, to avoid a warning in map_physmem() about a partial map. Signed-off-by: Simon Glass --- drivers/power/acpi_pmc/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/acpi_pmc/sandbox.c b/drivers/power/acpi_pmc/sandbox.c index ed1bb198093..e48cdf8200e 100644 --- a/drivers/power/acpi_pmc/sandbox.c +++ b/drivers/power/acpi_pmc/sandbox.c @@ -70,7 +70,7 @@ static int sandbox_pmc_probe(struct udevice *dev) base = dm_pci_read_bar32(dev, 0); if (base == FDT_ADDR_T_NONE) return log_msg_ret("No base address", -EINVAL); - upriv->pmc_bar0 = map_sysmem(base, 0x2000); + upriv->pmc_bar0 = map_sysmem(base, 0x80); upriv->gpe_cfg = (u32 *)(upriv->pmc_bar0 + GPIO_GPE_CFG); return pmc_ofdata_to_uc_plat(dev);