summaryrefslogtreecommitdiffstats
path: root/occ_status.cpp
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-08-30 20:54:00 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-09-02 20:23:44 +0530
commited0f8eb03c6a35f207f90da581f419aaa4f9fb99 (patch)
tree7f8bc3fd63714163ab0e7ca66d9c58f14d09152f /occ_status.cpp
parent2c1291325d9c6f5cd24c9a98b86154ade667328f (diff)
downloadopenpower-occ-control-ed0f8eb03c6a35f207f90da581f419aaa4f9fb99.tar.gz
openpower-occ-control-ed0f8eb03c6a35f207f90da581f419aaa4f9fb99.zip
Remove hub FSI scan which was part of OCC bind
Scanning hub FSI is now moved to a service file since it's needed prior to power on and hence this change is not needed. Change-Id: If2d0d8f5c7e1b405d6e858e0f2da8fc7b505cd86 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'occ_status.cpp')
-rw-r--r--occ_status.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/occ_status.cpp b/occ_status.cpp
index 15ffbc8..6788c54 100644
--- a/occ_status.cpp
+++ b/occ_status.cpp
@@ -7,11 +7,6 @@ namespace open_power
namespace occ
{
-bool Status::hubFsiScanDone = false;
-
-// To initiate a FSI rescan
-constexpr auto fsiReScan = "1";
-
// Handles updates to occActive property
bool Status::occActive(bool value)
{
@@ -19,12 +14,6 @@ bool Status::occActive(bool value)
{
if (value)
{
- if (!hubFsiScanDone)
- {
- // Need to do hub scan before we bind
- this->scanHubFSI();
- }
-
// Bind the device
device.bind();
@@ -46,9 +35,6 @@ bool Status::occActive(bool value)
// Do the unbind.
device.unBind();
-
- // Indicate the hub FSI scan needs to be done again
- hubFsiScanDone = false;
}
}
return Base::Status::occActive(value);
@@ -119,18 +105,5 @@ void Status::hostControlEvent(sdbusplus::message::message& msg)
return;
}
-// Scans the secondary FSI hub to make sure /dev/occ files are populated
-// Write "1" to achieve that
-void Status::scanHubFSI()
-{
- std::ofstream file(FSI_SCAN_FILE, std::ios::out);
- file << fsiReScan;
- file.close();
-
- // Hub FSI scan has been done. No need to do this for all the OCCs
- hubFsiScanDone = true;
- return;
-}
-
} // namespace occ
} // namespace open_power
OpenPOWER on IntegriCloud