mirror of https://gitee.com/openkylin/linux.git
[media] coda: add an intermediate debug level
Dumping all register accesses drowns other debugging messages in the log. Add a less verbose debug level. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Kamil Debski <k.debski@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
b0ed05b902
commit
d60b18ba31
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
int coda_debug;
|
int coda_debug;
|
||||||
module_param(coda_debug, int, 0644);
|
module_param(coda_debug, int, 0644);
|
||||||
MODULE_PARM_DESC(coda_debug, "Debug level (0-1)");
|
MODULE_PARM_DESC(coda_debug, "Debug level (0-2)");
|
||||||
|
|
||||||
struct coda_fmt {
|
struct coda_fmt {
|
||||||
char *name;
|
char *name;
|
||||||
|
@ -67,7 +67,7 @@ struct coda_fmt {
|
||||||
|
|
||||||
void coda_write(struct coda_dev *dev, u32 data, u32 reg)
|
void coda_write(struct coda_dev *dev, u32 data, u32 reg)
|
||||||
{
|
{
|
||||||
v4l2_dbg(1, coda_debug, &dev->v4l2_dev,
|
v4l2_dbg(2, coda_debug, &dev->v4l2_dev,
|
||||||
"%s: data=0x%x, reg=0x%x\n", __func__, data, reg);
|
"%s: data=0x%x, reg=0x%x\n", __func__, data, reg);
|
||||||
writel(data, dev->regs_base + reg);
|
writel(data, dev->regs_base + reg);
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ unsigned int coda_read(struct coda_dev *dev, u32 reg)
|
||||||
{
|
{
|
||||||
u32 data;
|
u32 data;
|
||||||
data = readl(dev->regs_base + reg);
|
data = readl(dev->regs_base + reg);
|
||||||
v4l2_dbg(1, coda_debug, &dev->v4l2_dev,
|
v4l2_dbg(2, coda_debug, &dev->v4l2_dev,
|
||||||
"%s: data=0x%x, reg=0x%x\n", __func__, data, reg);
|
"%s: data=0x%x, reg=0x%x\n", __func__, data, reg);
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue