1
0
mirror of https://github.com/DigitalDevices/dddvb.git synced 2023-10-10 13:37:43 +02:00

add remote interrupt status to debug message

This commit is contained in:
Ralph Metzler 2015-09-20 01:50:39 +02:00
parent dd78dae68b
commit 1aacccef7c

View File

@ -122,6 +122,11 @@ static int ddb_i2c_cmd(struct ddb_i2c *i2c, u32 adr, u32 cmd)
u32 istat = ddbreadl(dev, INTERRUPT_STATUS); u32 istat = ddbreadl(dev, INTERRUPT_STATUS);
dev_err(dev->dev, "DDBridge IRS %08x\n", istat); dev_err(dev->dev, "DDBridge IRS %08x\n", istat);
if (i2c->link) {
u32 listat = ddbreadl(dev, DDB_LINK_TAG(i2c->link) | INTERRUPT_STATUS);
dev_err(dev->dev, "DDBridge link %u IRS %08x\n",
i2c->link, listat);
}
if (istat & 1) { if (istat & 1) {
ddbwritel(dev, istat & 1, INTERRUPT_ACK); ddbwritel(dev, istat & 1, INTERRUPT_ACK);
} else { } else {