]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] media: ti-vpe: csc: Add debug support for multi-instance
authorBenoit Parrot <bparrot@ti.com>
Fri, 18 Nov 2016 23:20:44 +0000 (21:20 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 22 Nov 2016 10:12:24 +0000 (08:12 -0200)
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>
drivers/media/platform/ti-vpe/csc.c

index 9fc6f70adeeb6b3deaa1eed80ec5a3002f0ef12a..44b8465cf101adc56017fac6e19e0c476b9c74ec 100644 (file)
@@ -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);