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

report I2C bus errors

This commit is contained in:
Ralph Metzler 2018-03-28 19:43:04 +02:00
parent 70778b818e
commit 1d7d8bc413

View File

@ -63,7 +63,10 @@ static int ddb_i2c_cmd(struct ddb_i2c *i2c, u32 adr, u32 cmd)
#endif
return -EIO;
}
if (val & 0x70000)
val &= 0x70000;
if (val == 0x20000)
dev_err(dev->dev, "I2C bus errorx\n");
if (val)
return -EIO;
return 0;
}