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:
parent
70778b818e
commit
1d7d8bc413
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user