phy: rockchip: csi2-dphy: fixes fwnode parse error of cphy

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id6fc73b416888dc25bf3dc8af82ea685821efaf6
This commit is contained in:
Zefa Chen
2023-07-20 14:41:23 +08:00
committed by Tao Huang
parent 955d8bfa4b
commit 74bb5a299c

View File

@@ -800,8 +800,9 @@ static int rockchip_csi2_dphy_fwnode_parse(struct device *dev,
return -EINVAL;
}
if (vep->bus_type == V4L2_MBUS_CSI2_DPHY) {
config->type = V4L2_MBUS_CSI2_DPHY;
if (vep->bus_type == V4L2_MBUS_CSI2_DPHY ||
vep->bus_type == V4L2_MBUS_CSI2_CPHY) {
config->type = vep->bus_type;
config->flags = vep->bus.mipi_csi2.flags;
s_asd->lanes = vep->bus.mipi_csi2.num_data_lanes;
} else if (vep->bus_type == V4L2_MBUS_CCP2) {