some log is so boring, set print level more high.
Change-Id: I8cfe16f535718a130fa03ee7173e4ef325239e06
Signed-off-by: dalon.zhang <dalon.zhang@rock-chips.com>
streaming again, iommu resource may be conflicted.
*v0.0x21.0xa:
1) clock clk_vio0_noc would cause mipi lcdc no display on 3368h, remove it.
+*v0.0x21.0xb:
+ 1) some log is boring, so set print level more high.
*/
-#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0, 0x21, 0xa)
+#define CAMSYS_DRIVER_VERSION KERNEL_VERSION(0, 0x21, 0xb)
#define CAMSYS_PLATFORM_DRV_NAME "RockChip-CamSys"
#define CAMSYS_PLATFORM_MARVIN_NAME "Platform_MarvinDev"
devctl->ops, gpio->io, !gpio->active);
}
} else {
- camsys_err("Sysctl %d failed, because gpio is NULL!",
+ camsys_trace(1, "Sysctl %d not do, because gpio is NULL",
devctl->ops);
err = -EINVAL;
goto end;
camsys_dev->dma_buf_cnt++;
camsys_trace
(
- 1,
- "%s:iommu map dma_addr 0x%lx,attach %p,"
+ 2,
+ "dma buf map: dma_addr 0x%lx,attach %p,"
"dma_buf %p,sgt %p,fd %d,buf_cnt %d",
- __func__,
(unsigned long)dma_addr,
attach,
dma_buf,
attach = camsys_dev->dma_buf[index].attach;
dma_buf = camsys_dev->dma_buf[index].dma_buf;
sgt = camsys_dev->dma_buf[index].sgt;
+ dma_addr = sg_dma_address(sgt->sgl);
camsys_trace
(
- 1,
- "%s:iommu map ,attach %p,"
+ 2,
+ "dma buf unmap: dma_addr 0x%lx,attach %p,"
"dma_buf %p,sgt %p,index %d",
- __func__,
+ (unsigned long)dma_addr,
attach,
dma_buf,
sgt,
clk_set_rate(clk->cif_clk_out, inclk);
clk_prepare_enable(clk->cif_clk_out);
clk->out_on = on;
- camsys_trace(1, "camsys %s clock out(rate: %dHz) turn on",
+ camsys_trace(1, "%s clock out(rate: %dHz) turn on",
dev_name(camsys_dev->miscdev.this_device),
inclk);
} else if (!on && clk->out_on) {
}
}
if (on)
- camsys_trace(1, "%s mipi phy clk in turn on",
+ camsys_trace(2, "%s mipiphy clk turn on",
dev_name(camsys_dev->miscdev.this_device));
else
- camsys_trace(1, "%s mipi phy clk in turn off",
+ camsys_trace(2, "%s mipiphy clk turn off",
dev_name(camsys_dev->miscdev.this_device));
return 0;
/* get cru base */
node = of_parse_phandle(dev->of_node, "rockchip,cru", 0);
camsys_dev->rk_cru_base = (unsigned long)of_iomap(node, 0);
- camsys_trace(1, "rk_cru_base=0x%lx", camsys_dev->rk_cru_base);
+ camsys_trace(2, "rk_cru_base=0x%lx", camsys_dev->rk_cru_base);
/* get grf base */
node = of_parse_phandle(dev->of_node, "rockchip,grf", 0);
camsys_dev->rk_grf_base = (unsigned long)of_iomap(node, 0);
- camsys_trace(1, "rk_grf_base=0x%lx", camsys_dev->rk_grf_base);
+ camsys_trace(2, "rk_grf_base=0x%lx", camsys_dev->rk_grf_base);
}
return 0;
if (chip_type == 3368) {
strlcpy(camsys_soc_p->name, "camsys_rk3368", 31);
camsys_soc_p->soc_cfg = camsys_rk3368_cfg;
- camsys_err("camsys_soc_init exit!");
+ camsys_trace(2, "camsys_soc_init exit!");
} else if (chip_type == 3288) {
if (cpu_is_rk3288()) {
strlcpy(camsys_soc_p->name, "camsys_rk3288", 31);
} else if (chip_type == 3366) {
strlcpy(camsys_soc_p->name, "camsys_rk3366", 31);
camsys_soc_p->soc_cfg = camsys_rk3366_cfg;
- camsys_err("camsys_soc_init exit!");
+ camsys_trace(2, "camsys_soc_init exit!");
} else if (chip_type == 3399) {
strlcpy(camsys_soc_p->name, "camsys_rk3399", 31);
camsys_soc_p->soc_cfg = camsys_rk3399_cfg;
- camsys_err("camsys_soc_init exit!");
+ camsys_trace(2, "camsys_soc_init exit!");
}
return 0;
cru_writel(0x40004000, 0x1d0);
else
cru_writel(0x40000000, 0x1d0);
- camsys_trace(1, "Isp_SoftRst: %d", reset);
+ camsys_trace(2, "Isp_SoftRst: %d", reset);
break;
}
else
__raw_writel(0x00, (void *)(camsys_dev->rk_isp_base +
MRV_AFM_BASE + VI_IRCL));
- camsys_trace(1, "Isp self soft rst: %ld", reset);
+ camsys_trace(2, "Isp self soft rst: %ld", reset);
break;
}