Skip to contentSkip to conversation

media: ti-vpe: csc: Add debug support for multi-instance

PATCH Superseded Benoit Parrot 1 participant 1 message Sep 28, 2016 Media (V4L/DVB)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 34/35 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.

---
 drivers/media/platform/ti-vpe/csc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/media/platform/ti-vpe/csc.c +2 -0
index 9fc6f70adeeb..44b8465cf101 100644
@@ -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);
Signature · 1 line
2.9.0