From patchwork Tue Jan 25 20:07:00 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Igor M. Liplianin" X-Patchwork-Id: 5687 Return-path: Envelope-to: mchehab@pedra Delivery-date: Tue, 25 Jan 2011 18:55:57 -0200 Received: from mchehab by pedra with local (Exim 4.72) (envelope-from ) id 1Phpvg-0001Et-RK for mchehab@pedra; Tue, 25 Jan 2011 18:55:57 -0200 Received: from casper.infradead.org [85.118.1.10] by pedra with IMAP (fetchmail-6.3.17) for (single-drop); Tue, 25 Jan 2011 18:55:56 -0200 (BRST) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1Phpqw-0007ET-GN; Tue, 25 Jan 2011 20:51:02 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753899Ab1AYUts (ORCPT + 1 other); Tue, 25 Jan 2011 15:49:48 -0500 Received: from mail-ew0-f46.google.com ([209.85.215.46]:55235 "EHLO mail-ew0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753836Ab1AYUtm (ORCPT ); Tue, 25 Jan 2011 15:49:42 -0500 Received: by mail-ew0-f46.google.com with SMTP id 5so2884034ewy.19 for ; Tue, 25 Jan 2011 12:49:41 -0800 (PST) Received: by 10.14.53.66 with SMTP id f42mr6667081eec.3.1295988581348; Tue, 25 Jan 2011 12:49:41 -0800 (PST) Received: from useri.localnet ([93.125.74.3]) by mx.google.com with ESMTPS id t5sm11419593eeh.20.2011.01.25.12.49.39 (version=SSLv3 cipher=RC4-MD5); Tue, 25 Jan 2011 12:49:40 -0800 (PST) Message-ID: <4d3f3764.857a0e0a.122c.478e@mx.google.com> From: "Igor M. Liplianin" Date: Tue, 25 Jan 2011 22:07:00 +0200 Subject: [PATCH 8/9 v3] cx23885: disable MSI for NetUP cards, otherwise CI is not working To: , , Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Signed-off-by: Igor M. Liplianin --- drivers/media/video/cx23885/cx23885-core.c | 4 ++++ drivers/media/video/cx23885/cx23885-reg.h | 1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c index d778b1a..9933810 100644 --- a/drivers/media/video/cx23885/cx23885-core.c +++ b/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; } diff --git a/drivers/media/video/cx23885/cx23885-reg.h b/drivers/media/video/cx23885/cx23885-reg.h index a28772d..c87ac68 100644 --- a/drivers/media/video/cx23885/cx23885-reg.h +++ b/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 */