67 lines
2.3 KiB
Diff
67 lines
2.3 KiB
Diff
From b56e3266dc0a8ab03381e11ab8582693bd17a4ef Mon Sep 17 00:00:00 2001
|
|
From: Manu Abraham <abraham.manu@gmail.com>
|
|
Date: Fri, 4 Dec 2009 05:23:38 -0300
|
|
Subject: [PATCH 067/120] V4L/DVB (13765): [Mantis] HIF I/O: Add some debug statements
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Manu Abraham <manu@linuxtv.org>
|
|
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
(cherry picked from commit 8b9c385f765bcc7fc5ae802830ffcb4b6ca6bc9c)
|
|
|
|
Signed-off-by: Bjørn Mork <bjorn@mork.no>
|
|
---
|
|
drivers/media/dvb/mantis/mantis_hif.c | 7 ++++++-
|
|
1 files changed, 6 insertions(+), 1 deletions(-)
|
|
|
|
diff --git a/drivers/media/dvb/mantis/mantis_hif.c b/drivers/media/dvb/mantis/mantis_hif.c
|
|
index 880b996..c2cecc3 100644
|
|
--- a/drivers/media/dvb/mantis/mantis_hif.c
|
|
+++ b/drivers/media/dvb/mantis/mantis_hif.c
|
|
@@ -51,6 +51,7 @@ static int mantis_hif_sbuf_opdone_wait(struct mantis_ca *ca)
|
|
dprintk(verbose, MANTIS_ERROR, 1, "Adapter(%d) Slot(0): Smart buffer operation timeout !", mantis->num);
|
|
rc = -EREMOTEIO;
|
|
}
|
|
+ dprintk(verbose, MANTIS_DEBUG, 1, "Smart Buffer Operation complete");
|
|
ca->hif_event &= ~MANTIS_SBUF_OPDONE;
|
|
udelay(5);
|
|
return rc;
|
|
@@ -83,7 +84,7 @@ int mantis_hif_read_mem(struct mantis_ca *ca, u32 addr)
|
|
return -EREMOTEIO;
|
|
}
|
|
data = mmread(MANTIS_GPIF_DIN);
|
|
-
|
|
+ dprintk(verbose, MANTIS_DEBUG, 1, "Mem Read: 0x%02x", data);
|
|
return (data >> 24) & 0xff;
|
|
}
|
|
|
|
@@ -111,6 +112,8 @@ int mantis_hif_write_mem(struct mantis_ca *ca, u32 addr, u8 data)
|
|
return -EREMOTEIO;
|
|
}
|
|
ca->hif_job_queue &= ~MANTIS_HIF_MEMWR;
|
|
+ dprintk(verbose, MANTIS_DEBUG, 1, "Mem Write: (0x%02x to 0x%02x)", data, addr);
|
|
+
|
|
return 0;
|
|
}
|
|
|
|
@@ -137,6 +140,7 @@ int mantis_hif_read_iom(struct mantis_ca *ca, u32 addr)
|
|
data = mmread(MANTIS_GPIF_DIN);
|
|
hif_addr |= MANTIS_GPIF_PCMCIAREG;
|
|
mmwrite(hif_addr, MANTIS_GPIF_ADDR);
|
|
+ dprintk(verbose, MANTIS_DEBUG, 1, "I/O Read: 0x%02x", data);
|
|
udelay(50);
|
|
|
|
return (u8) data;
|
|
@@ -165,6 +169,7 @@ int mantis_hif_write_iom(struct mantis_ca *ca, u32 addr, u8 data)
|
|
ca->hif_job_queue &= ~MANTIS_HIF_IOMWR;
|
|
hif_addr |= MANTIS_GPIF_PCMCIAREG;
|
|
mmwrite(hif_addr, MANTIS_GPIF_ADDR);
|
|
+ dprintk(verbose, MANTIS_DEBUG, 1, "I/O Write: (0x%02x to 0x%02x)", data, addr);
|
|
udelay(50);
|
|
|
|
return 0;
|
|
--
|
|
1.7.1
|
|
|