[Skiboot] [PATCH v2 3/9] phb4: Remove unused code

Michael Neuling mikey at neuling.org
Mon Oct 23 21:22:16 AEDT 2017


This is old unused code from phb3 so just remove it.

No functional change

Signed-off-by: Michael Neuling <mikey at neuling.org>
---
 hw/phb4.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/hw/phb4.c b/hw/phb4.c
index 755f0965ce..c84378c4f5 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -3187,16 +3187,6 @@ static int64_t phb4_eeh_next_error(struct phb *phb,
 	 * for the case.
 	 */
 	if (p->err.err_class == PHB4_ERR_CLASS_ER) {
-#if 0
-		// FIXME XXXXX
-		fir = phb4_read_reg_asb(p, PHB_LEM_FIR_ACCUM);
-		if (fir & PPC_BIT(60)) {
-			phb4_pcicfg_read32(&p->phb, 0,
-					   p->aercap + PCIECAP_AER_UE_STATUS, &cfg32);
-			if (cfg32 & PCIECAP_AER_UE_MALFORMED_TLP)
-				p->err.err_class = PHB4_ERR_CLASS_FENCED;
-		}
-#endif
 	}
 
 	switch (p->err.err_class) {
-- 
2.14.1



More information about the Skiboot mailing list