Elyes Haouas has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/63972 )
Change subject: mb/google/stout: Use pci_update_config32() ......................................................................
mb/google/stout: Use pci_update_config32()
Signed-off-by: Elyes Haouas ehaouas@noos.fr Change-Id: Ie1d2965b384e5653958f7f8503c62b8a16fa7bc1 --- M src/mainboard/google/stout/smihandler.c 1 file changed, 1 insertion(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/63972/1
diff --git a/src/mainboard/google/stout/smihandler.c b/src/mainboard/google/stout/smihandler.c index 47cb0eb..f6adbf9 100644 --- a/src/mainboard/google/stout/smihandler.c +++ b/src/mainboard/google/stout/smihandler.c @@ -58,10 +58,7 @@ * after the transition into suspend. */ if (gnvs->xhci) { - u32 reg32 = pci_read_config32(PCH_XHCI_DEV, 0x74); - reg32 &= ~(1 << 8); /* disable PME */ - reg32 |= (1 << 15); /* clear PME status */ - pci_write_config32(PCH_XHCI_DEV, 0x74, reg32); + pci_update_config32(PCH_XHCI_DEV, 0x74, ~(1 << 8), 1 << 15); } }