mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 21:07:02 +09:00
media: rockchip: isp: mask csi isr if no use
Change-Id: I23b8511ef522255fea1b77bdba272b8c733e2d03 Signed-off-by: Cai YiWei <cyw@rock-chips.com>
This commit is contained in:
@@ -3300,9 +3300,9 @@ void rkisp_mipi_v20_isr(unsigned int phy, unsigned int packet,
|
||||
|
||||
v4l2_dbg(3, rkisp_debug, &dev->v4l2_dev,
|
||||
"csi state:0x%x\n", state);
|
||||
if (phy)
|
||||
if (phy && (dev->isp_inp & INP_CSI))
|
||||
v4l2_warn(v4l2_dev, "MIPI error: phy: 0x%08x\n", phy);
|
||||
if (packet)
|
||||
if (packet && (dev->isp_inp & INP_CSI))
|
||||
v4l2_warn(v4l2_dev, "MIPI error: packet: 0x%08x\n", packet);
|
||||
if (overflow)
|
||||
v4l2_warn(v4l2_dev, "MIPI error: overflow: 0x%08x\n", overflow);
|
||||
|
||||
@@ -410,6 +410,8 @@ int rkisp_csi_config_patch(struct rkisp_device *dev)
|
||||
writel(val, dev->base_addr + ISP_HDRMGE_BASE);
|
||||
writel(val & SW_HDRMGE_EN, dev->base_addr + ISP_HDRTMO_BASE);
|
||||
writel(0x7FFFFF7F, dev->base_addr + CSI2RX_MASK_STAT);
|
||||
writel(0, dev->base_addr + CSI2RX_MASK_PACKET);
|
||||
writel(0, dev->base_addr + CSI2RX_MASK_PHY);
|
||||
}
|
||||
|
||||
if (IS_HDR_RDBK(dev->hdr.op_mode))
|
||||
|
||||
Reference in New Issue
Block a user