Kane Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/58093 )
Change subject: soc/intel/common: Implement __weak smihandler_soc_disable_busmaster ......................................................................
soc/intel/common: Implement __weak smihandler_soc_disable_busmaster
Currently all implemented smihandler_soc_disable_busmaster functions are actually doing exactly same thing to avoid bus master disable on PMC. To remove duplicated code, this commit changes the default function to skip pmc device bus master disable.
Change-Id: I8ed7e6a3f60588bfb90481ea493495080dbbfd58 --- M src/soc/intel/common/block/smm/smihandler.c 1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/93/58093/1
diff --git a/src/soc/intel/common/block/smm/smihandler.c b/src/soc/intel/common/block/smm/smihandler.c index e1eadb6..32afc92 100644 --- a/src/soc/intel/common/block/smm/smihandler.c +++ b/src/soc/intel/common/block/smm/smihandler.c @@ -44,6 +44,8 @@
__weak int smihandler_soc_disable_busmaster(pci_devfn_t dev) { + if (dev == PCH_DEV_PMC) + return 0; return 1; }