Commit 8fb737b7 authored by Dmitry Belimov's avatar Dmitry Belimov Committed by Mauro Carvalho Chehab

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: default avatarBeholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 548899c7
...@@ -140,6 +140,8 @@ static inline int i2c_is_busy(enum i2c_status status) ...@@ -140,6 +140,8 @@ static inline int i2c_is_busy(enum i2c_status status)
{ {
switch (status) { switch (status) {
case BUSY: case BUSY:
case TO_SCL:
case TO_ARB:
return true; return true;
default: default:
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment