diff options
author | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-04 12:42:11 +0400 |
---|---|---|
committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-01-12 17:54:14 +0400 |
commit | e63b009d6e772e3fe6df39345ca2f8949d4497e6 (patch) | |
tree | 24fff76ddb674d423be5d5cdebd05f0a27b42778 /crypto/krng.c | |
parent | d20e4ed6d30c6ecee315eea0efb3449c3591d09e (diff) | |
download | linux-e63b009d6e772e3fe6df39345ca2f8949d4497e6.tar.xz |
[media] em28xx-i2c: Fix error code for I2C error transfers
Follow the error codes for I2C as described at Documentation/i2c/fault-codes.
In the case of the I2C status register (0x05), this is mapped into:
- ENXIO - when reg 05 returns 0x10
- ETIMEDOUT - when the device is not temporarily not responding
(e. g. reg 05 returning something not 0x10 or 0x00)
- EIO - for generic I/O errors that don't fit into the above.
In the specific case of 0-byte reads, used only during I2C device
probing, it keeps returning -ENODEV.
TODO: return EBUSY when reg 05 returns 0x20 on em2874 and upper.
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'crypto/krng.c')
0 files changed, 0 insertions, 0 deletions