diff options
author | Prachi Gupta <pragupta@us.ibm.com> | 2017-06-08 11:19:08 -0500 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2017-06-19 09:45:28 -0400 |
commit | 8702e5d3e8832111abf44dd2ea16f24312fd773f (patch) | |
tree | 42cf7cd2dd3c4be95445ce6f0d6b22db8b3763b2 | |
parent | 2895249b06f4064caca13efc15a569fb43139ed7 (diff) | |
download | talos-hostboot-8702e5d3e8832111abf44dd2ea16f24312fd773f.tar.gz talos-hostboot-8702e5d3e8832111abf44dd2ea16f24312fd773f.zip |
processMrw: set OBUS_SLOT_INDEX to not connected based on mrw conn
Change-Id: Ib43f87f170082e1e3b971b515d9fab13a584794a
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/41545
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Matthew A. Ploetz <maploetz@us.ibm.com>
Reviewed-by: Elizabeth K. Liner <eliner@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
-rw-r--r-- | src/usr/targeting/common/processMrw.pl | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/usr/targeting/common/processMrw.pl b/src/usr/targeting/common/processMrw.pl index 9d7d11ca8..83676d01a 100644 --- a/src/usr/targeting/common/processMrw.pl +++ b/src/usr/targeting/common/processMrw.pl @@ -943,21 +943,20 @@ sub processObus if ($obus eq "") { - #No connections mean, we need to remove all the children and the obus + #No connections mean, we need to set the OBUS_SLOT_INDEX to -1 + #to mark that they are not connected $targetObj->log($target,"no bus connection found"); - $targetObj->log($target,"removing target and it's children"); foreach my $obrick (@{ $targetObj->getTargetChildren($target) }) { - $targetObj->removeTarget($obrick); + $targetObj->setAttribute($obrick, "OBUS_SLOT_INDEX", -1); } - $targetObj->removeTarget($target); } else { #Loop through all the bricks and figure out if it connected to an #obusslot. If it is connected, then store the slot information (position) #in the obus_brick target as OBUS_SLOT_INDEX. If it is not connected, - #remove obus brick target. + #set the value to -1 to mark that they are not connected my $match = 0; foreach my $obrick (@{ $targetObj->getTargetChildren($target) }) { @@ -976,11 +975,11 @@ sub processObus } } - #This brick is not connected to anything, remove + #This brick is not connected to anything, set the value of OBUS_SLOT_INDEX to -1 + #to mark that they are not connected if ($match eq 0) { - $targetObj->log($target,"no bus conn, removing target"); - $targetObj->removeTarget($obrick); + $targetObj->setAttribute($obrick, "OBUS_SLOT_INDEX", -1); } } } |