From 88fefd4feb61d20945a1be4a792f8236db1bb2d0 Mon Sep 17 00:00:00 2001 From: Fred Reitberger Date: Wed, 19 Apr 2023 16:06:38 -0400 Subject: [PATCH] soc/amd/phoenix/xhci: Correct counting of xhci_sci_sources Signed-off-by: Fred Reitberger Change-Id: Iabba97e003d1a5140c98e3fc5a3496f66f8795c2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/74528 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai --- src/soc/amd/phoenix/xhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/amd/phoenix/xhci.c b/src/soc/amd/phoenix/xhci.c index ef1b60a063..06481edce2 100644 --- a/src/soc/amd/phoenix/xhci.c +++ b/src/soc/amd/phoenix/xhci.c @@ -49,7 +49,7 @@ enum cb_err pci_xhci_get_wake_gpe(const struct device *dev, int *gpe) static void configure_xhci_sci(void *unused) { - gpe_configure_sci(xhci_sci_sources, ARRAY_SIZE(xhci_sci_sources) - 1); + gpe_configure_sci(xhci_sci_sources, ARRAY_SIZE(xhci_sci_sources)); } BOOT_STATE_INIT_ENTRY(BS_POST_DEVICE, BS_ON_ENTRY, configure_xhci_sci, NULL);