From: Benoit Parrot Date: Fri, 18 Nov 2016 23:20:44 +0000 (-0200) Subject: [media] media: ti-vpe: csc: Add debug support for multi-instance X-Git-Tag: v4.14-rc1~332^2~1049 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ce0f30f8eadbcabab22a41b5c8cb6af7fcdefca;p=platform%2Fkernel%2Flinux-rpi.git [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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/ti-vpe/csc.c b/drivers/media/platform/ti-vpe/csc.c index 9fc6f70..44b8465 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);