浏览代码

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>
Dmitry Belimov 17 年之前
父节点
当前提交
8fb737b7dc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      drivers/media/video/saa7134/saa7134-i2c.c

+ 2 - 0
drivers/media/video/saa7134/saa7134-i2c.c

@@ -140,6 +140,8 @@ static inline int i2c_is_busy(enum i2c_status status)
 {
 	switch (status) {
 	case BUSY:
+	case TO_SCL:
+	case TO_ARB:
 		return true;
 	default:
 		return false;