media: i2c: rk628: fix rk628d should not reset txdata when stream on

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I7e1e793882bbc214da7a9591efd32fd4a09c0c8a
This commit is contained in:
Jianwei Fan
2025-04-21 17:06:31 +08:00
committed by Tao Huang
parent b4e8fa7e0d
commit 6af2e086d0

View File

@@ -956,7 +956,8 @@ static void enable_stream(struct v4l2_subdev *sd, bool en)
enable_csitx(sd);
rk628_hdmirx_vid_enable(sd, true);
if (csi->plat_data->tx_mode == CSI_MODE) {
if (csi->plat_data->tx_mode == CSI_MODE &&
csi->rk628->version >= RK628F_VERSION) {
msleep(20);
rk628_mipi_txdata_reset(sd);
rk628_csi_enable_csi_interrupts(sd, true);
@@ -968,8 +969,10 @@ static void enable_stream(struct v4l2_subdev *sd, bool en)
GCPFORCE_CLRAVMUTE_MASK, GCPFORCE_CLRAVMUTE(0));
} else {
if (csi->plat_data->tx_mode == CSI_MODE) {
rk628_csi_enable_csi_interrupts(sd, false);
msleep(20);
if (csi->rk628->version >= RK628F_VERSION) {
rk628_csi_enable_csi_interrupts(sd, false);
msleep(20);
}
rk628_hdmirx_vid_enable(sd, false);
rk628_csi_disable_stream(sd);
} else {