diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2019-05-31 16:13:10 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-06-03 10:20:00 +1000 |
commit | 5eec3e33bc066245c191106cf5a3f031973d7850 (patch) | |
tree | 8cf26600dc959d1e316feea0d7d2e743cbfc3825 /core | |
parent | 484e81580580c8850f383144aad9845b9c4bc495 (diff) | |
download | skiboot-5eec3e33bc066245c191106cf5a3f031973d7850.zip skiboot-5eec3e33bc066245c191106cf5a3f031973d7850.tar.gz skiboot-5eec3e33bc066245c191106cf5a3f031973d7850.tar.bz2 |
Remove unused OPAL_PCI_EEH_FREEZE_STATUS2
This call was introduced all the way back at the end of 2012, before
OPAL was public. The #define for the OPAL call was introduced to the
Linux kernel in June 2013, and the call was never used in any kernel
tree ever (as far as we can find).
Thus, it's quite safe to remove this completely unused and completely
untested OPAL call.
Fixes: https://github.com/open-power/skiboot/issues/99
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/pci-opal.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/core/pci-opal.c b/core/pci-opal.c index 0888394..b0e61b6 100644 --- a/core/pci-opal.c +++ b/core/pci-opal.c @@ -929,37 +929,6 @@ static int64_t opal_pci_next_error(uint64_t phb_id, uint64_t *first_frozen_pe, } opal_call(OPAL_PCI_NEXT_ERROR, opal_pci_next_error, 4); -static int64_t opal_pci_eeh_freeze_status2(uint64_t phb_id, uint64_t pe_number, - uint8_t *freeze_state, - uint16_t *pci_error_type, - uint16_t *severity, - uint64_t *phb_status) -{ - struct phb *phb = pci_get_phb(phb_id); - int64_t rc; - - if (!opal_addr_valid(freeze_state) || !opal_addr_valid(pci_error_type) - || !opal_addr_valid(severity) || !opal_addr_valid(phb_status)) - return OPAL_PARAMETER; - - if (!phb) - return OPAL_PARAMETER; - if (!phb->ops->eeh_freeze_status) - return OPAL_UNSUPPORTED; - phb_lock(phb); - - if (phb_status) - prlog(PR_ERR, "PHB#%04llx: %s: deprecated PHB status\n", - phb_id, __func__); - - rc = phb->ops->eeh_freeze_status(phb, pe_number, freeze_state, - pci_error_type, severity); - phb_unlock(phb); - - return rc; -} -opal_call(OPAL_PCI_EEH_FREEZE_STATUS2, opal_pci_eeh_freeze_status2, 6); - static int64_t opal_pci_set_phb_capi_mode(uint64_t phb_id, uint64_t mode, uint64_t pe_number) { struct phb *phb = pci_get_phb(phb_id); |