[Skiboot] [PATCH 08/12] ast-io: Fix Ready/Busy indication

Deb McLemore debmc at linux.ibm.com
Fri Oct 18 08:53:21 AEDT 2019


Properly report if the SuperIO is ready or busy.

Signed-off-by: Deb McLemore <debmc at linux.ibm.com>
---
 hw/ast-bmc/ast-io.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/hw/ast-bmc/ast-io.c b/hw/ast-bmc/ast-io.c
index 171942a..22fb59f 100644
--- a/hw/ast-bmc/ast-io.c
+++ b/hw/ast-bmc/ast-io.c
@@ -361,7 +361,13 @@ bool ast_sio_init(void)
 
 bool ast_io_is_rw(void)
 {
-	return !(ast_ahb_readl(LPC_HICRB) & LPC_HICRB_ILPC_DISABLE);
+	int rc;
+	rc = ast_ahb_readl(LPC_HICRB);
+	prlog(PR_NOTICE, "LPC: SuperIO Ready/Busy=%s rc=0x%x LPC_HICRB 0x%x\n",
+		((rc & LPC_HICRB_ILPC_DISABLE) ? "Ready" : "Busy"),
+		rc,
+		(rc & LPC_HICRB_ILPC_DISABLE));
+	return (rc & LPC_HICRB_ILPC_DISABLE);
 }
 
 bool ast_io_init(void)
-- 
2.7.4



More information about the Skiboot mailing list