diff options
author | Frank Schaefer <fschaefer.oss@googlemail.com> | 2013-03-10 14:25:25 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-19 03:18:29 +0400 |
commit | 7f6301d1257505d35e87ef1cb8eeee268e63a123 (patch) | |
tree | 17fa90a1374d48dc32adf6eaf3aec7633886eac1 /.mailmap | |
parent | 195281d0dc6a2fc1824d5da9abd2924bce0fa698 (diff) | |
download | linux-7f6301d1257505d35e87ef1cb8eeee268e63a123.tar.xz |
[media] em28xx-i2c: relax error check in em28xx_i2c_recv_bytes()
It turned out that some devices return less bytes then requested via i2c when
ALL of the following 3 conditions are met:
- i2c bus B is used
- there was no attempt to write to the specified slave address before
- no device present at the specified slave address
With the current code, this triggers an -EIO error and prints a message to the
system log.
Because it can happen very often during device probing, it is better to ignore
this error and bail out silently after the follwing i2c transaction success
check with -ENODEV.
[mchehab@redhat.com: a small CodingStyle fix]
Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions