瀏覽代碼

[media] cx23885: disable MSI for NetUP cards, otherwise CI is not working

Signed-off-by: Igor M. Liplianin <liplianin@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Igor M. Liplianin 14 年之前
父節點
當前提交
702dd7903b
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 4 0
      drivers/media/video/cx23885/cx23885-core.c
  2. 1 0
      drivers/media/video/cx23885/cx23885-reg.h

+ 4 - 0
drivers/media/video/cx23885/cx23885-core.c

@@ -1041,6 +1041,10 @@ static int cx23885_dev_setup(struct cx23885_dev *dev)
 
 	cx23885_dev_checkrevision(dev);
 
+	/* disable MSI for NetUP cards, otherwise CI is not working */
+	if (cx23885_boards[dev->board].ci_type > 0)
+		cx_clear(RDR_RDRCTL1, 1 << 8);
+
 	return 0;
 }
 

+ 1 - 0
drivers/media/video/cx23885/cx23885-reg.h

@@ -292,6 +292,7 @@ Channel manager Data Structure entry = 20 DWORD
 #define RDR_CFG0	0x00050000
 #define RDR_CFG1	0x00050004
 #define RDR_CFG2	0x00050008
+#define RDR_RDRCTL1	0x0005030c
 #define RDR_TLCTL0	0x00050318
 
 /* APB DMAC Current Buffer Pointer */