diff options
author | Dmitry Belimov <d.belimov@gmail.com> | 2008-04-23 13:07:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 13:09:46 -0400 |
commit | 8fb737b7dc94e495be02c775afe1e7de0e06f3f5 (patch) | |
tree | 8136da08d833f128a4ebf80c4b781241e2d0bdd5 /drivers | |
parent | 548899c76e101bdf6228569d6ee6992e8c20da76 (diff) |
V4L/DVB (7676): saa7134: fix: Properly handle busy states on i2c bus
There are two conditions, reported by saa7134 that indicates that the I2C bus
is busy: TO_SCL and TO_ARB.
On both states, it needs to wait for I2C release, before using the bus.
Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-i2c.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/saa7134/saa7134-i2c.c b/drivers/media/video/saa7134/saa7134-i2c.c index ba71dd0040be..2ccfaba0c490 100644 --- a/drivers/media/video/saa7134/saa7134-i2c.c +++ b/drivers/media/video/saa7134/saa7134-i2c.c | |||
@@ -140,6 +140,8 @@ static inline int i2c_is_busy(enum i2c_status status) | |||
140 | { | 140 | { |
141 | switch (status) { | 141 | switch (status) { |
142 | case BUSY: | 142 | case BUSY: |
143 | case TO_SCL: | ||
144 | case TO_ARB: | ||
143 | return true; | 145 | return true; |
144 | default: | 146 | default: |
145 | return false; | 147 | return false; |