summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorManu Abraham2009-12-04 09:23:38 +0100
committerMauro Carvalho Chehab2010-01-17 14:55:38 +0100
commit8b9c385f765bcc7fc5ae802830ffcb4b6ca6bc9c (patch)
tree7c8dacf90a12606f0e89071aef548261254daded /drivers
parentV4L/DVB (13764): [Mantis CA] SLOT: Add some debug status (diff)
downloadkernel-qcow2-linux-8b9c385f765bcc7fc5ae802830ffcb4b6ca6bc9c.tar.gz
kernel-qcow2-linux-8b9c385f765bcc7fc5ae802830ffcb4b6ca6bc9c.tar.xz
kernel-qcow2-linux-8b9c385f765bcc7fc5ae802830ffcb4b6ca6bc9c.zip
V4L/DVB (13765): [Mantis] HIF I/O: Add some debug statements
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/dvb/mantis/mantis_hif.c7
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 880b99634c29..c2cecc3d7b19 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;