diff mbox series

[11/17] core/pci: use !platform.bmc hack over fsp_present()

Message ID 20190618072925.5299-12-stewart@linux.ibm.com
State Accepted
Headers show
Series FSP code free OPAL | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (dbf27b6c4af84addb36bd3be34f96580aba9c873)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot fail Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Stewart Smith June 18, 2019, 7:29 a.m. UTC
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 core/pci.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/core/pci.c b/core/pci.c
index af9df7083e01..e870d09b5c55 100644
--- a/core/pci.c
+++ b/core/pci.c
@@ -22,7 +22,6 @@ 
 #include <pci-quirk.h>
 #include <timebase.h>
 #include <device.h>
-#include <fsp.h>
 
 #define MAX_PHB_ID	256
 static struct phb *phbs[MAX_PHB_ID];
@@ -1461,7 +1460,7 @@  static void pci_add_loc_code(struct dt_node *np, struct pci_device *pd)
 	/* XXX Don't do that on openpower for now, we will need to sort things
 	 * out later, otherwise the mezzanine slot on Habanero gets weird results
 	 */
-	if (class == 0x02 && sub == 0x00 && fsp_present()) {
+	if (class == 0x02 && sub == 0x00 && !platform.bmc) {
 		/* There's usually several spaces at the end of the property.
 		   Test for, but don't rely on, that being the case */
 		len = strlen(blcode);