[Skiboot] [PATCH 15/28] xscom: Log error on invalid partid

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Jul 7 11:50:06 AEST 2016


Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 hw/xscom.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/xscom.c b/hw/xscom.c
index e351672..153a334 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -412,6 +412,7 @@ int xscom_read(uint32_t partid, uint64_t pcb_addr, uint64_t *val)
 			return OPAL_UNSUPPORTED;
 		break;
 	default:
+		prerror("%s: invalid XSCOM partid 0x%x\n", __func__, partid);
 		return OPAL_PARAMETER;
 	}
 
@@ -447,6 +448,7 @@ int xscom_write(uint32_t partid, uint64_t pcb_addr, uint64_t val)
 		gcid = xscom_decode_chiplet(partid, &pcb_addr);
 		break;
 	default:
+		prerror("%s: invalid XSCOM partid 0x%x\n", __func__, partid);
 		return OPAL_PARAMETER;
 	}
 
-- 
2.7.4



More information about the Skiboot mailing list