path: root/sound/mips
diff options
authorFrank Schaefer <fschaefer.oss@googlemail.com>2013-03-10 07:25:25 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-18 20:18:29 -0300
commit7f6301d1257505d35e87ef1cb8eeee268e63a123 (patch)
tree17fa90a1374d48dc32adf6eaf3aec7633886eac1 /sound/mips
parent195281d0dc6a2fc1824d5da9abd2924bce0fa698 (diff)
[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 'sound/mips')
0 files changed, 0 insertions, 0 deletions