Skip to contentSkip to conversation

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

PATCH New Igor M. Liplianin 2 participants 2 messages Jan 25, 2011 – Jan 26, 2011 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH v3 8/9 cx23885: disable MSI for NetUP cards, otherwise CI is not working

---
 drivers/media/video/cx23885/cx23885-core.c |    4 ++++
 drivers/media/video/cx23885/cx23885-reg.h  |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
drivers/media/video/cx23885/cx23885-core.c +4 -0
index d778b1a..9933810 100644
@@ -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;
 }
 
drivers/media/video/cx23885/cx23885-reg.h +1 -0
index a28772d..c87ac68 100644
@@ -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 */
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 Update stv0900 status when LOCK is missed

Update stv0900 status when LOCK is missed

---
 drivers/media/dvb/frontends/stv0900_core.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
drivers/media/dvb/frontends/stv0900_core.c +3 -1
index 4f5e7d3..34afcc6 100644
@@ -1660,8 +1660,10 @@ static int stv0900_read_status(struct dvb_frontend *fe, enum fe_status *status)
                        | FE_HAS_VITERBI
                        | FE_HAS_SYNC
                        | FE_HAS_LOCK;
-       } else
+       } else {
+               *status = 0;
                dprintk("DEMOD LOCK FAIL\n");
+       }
 
        return 0;
 }

--
1.7.2.1.95.g3d045

Signature · 2 lines
Abylai Ospan<[email protected]>
NetUP Inc.