summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform
diff options
context:
space:
mode:
authorBenoit Parrot <bparrot@ti.com>2016-11-18 21:20:44 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-11-22 08:12:24 -0200
commit3ce0f30f8eadbcabab22a41b5c8cb6af7fcdefca (patch)
tree7f30ca5710e3786b709d7ddc3600647eed3e2189 /drivers/media/platform
parent51b56c3941410c046c28005fce7c72f02327b42d (diff)
downloadlinux-3ce0f30f8eadbcabab22a41b5c8cb6af7fcdefca.tar.gz
linux-3ce0f30f8eadbcabab22a41b5c8cb6af7fcdefca.tar.bz2
linux-3ce0f30f8eadbcabab22a41b5c8cb6af7fcdefca.zip
[media] media: ti-vpe: csc: Add debug support for multi-instance
Since there might be more then one instance it is better to show the base address when dumping registers to help with debugging. Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform')
-rw-r--r--drivers/media/platform/ti-vpe/csc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/ti-vpe/csc.c b/drivers/media/platform/ti-vpe/csc.c
index 9fc6f70adeeb..44b8465cf101 100644
--- a/drivers/media/platform/ti-vpe/csc.c
+++ b/drivers/media/platform/ti-vpe/csc.c
@@ -97,6 +97,8 @@ void csc_dump_regs(struct csc_data *csc)
#define DUMPREG(r) dev_dbg(dev, "%-35s %08x\n", #r, \
ioread32(csc->base + CSC_##r))
+ dev_dbg(dev, "CSC Registers @ %pa:\n", &csc->res->start);
+
DUMPREG(CSC00);
DUMPREG(CSC01);
DUMPREG(CSC02);