summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hw/lpc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/hw/lpc.c b/hw/lpc.c
index 0e88e9f0..60fefdb1 100644
--- a/hw/lpc.c
+++ b/hw/lpc.c
@@ -531,9 +531,16 @@ static void lpc_setup_serirq(struct proc_chip *chip)
{
u32 val;
rc = opb_read(chip, lpc_reg_opb_base + LPC_HC_IRQMASK, &val, 4);
- DBG_IRQ("LPC: MASK READBACK=%x\n", val);
+ if (rc)
+ prerror("LPC: failed to readback mask");
+ else
+ DBG_IRQ("LPC: MASK READBACK=%x\n", val);
+
rc = opb_read(chip, lpc_reg_opb_base + LPC_HC_IRQSER_CTRL, &val, 4);
- DBG_IRQ("LPC: CTRL READBACK=%x\n", val);
+ if (rc)
+ prerror("LPC: failed to readback ctrl");
+ else
+ DBG_IRQ("LPC: CTRL READBACK=%x\n", val);
}
}
OpenPOWER on IntegriCloud