mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
phy: rockchip: csi2-dphy: fixes error point of dcphy logic node for rk3576
This error resulted in the failure to reinitialize dcphy rx when resetting dcphy tx Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Change-Id: I3362505437102fb09585f74ce2cfa362c9a2fe76
This commit is contained in:
@@ -254,6 +254,7 @@ static int rockchip_csi2_dphy_attach_hw(struct csi2_dphy *dphy, int csi_idx, int
|
||||
if (csi_idx < 1) {
|
||||
dcphy_hw = dphy->samsung_phy_group[csi_idx];
|
||||
mutex_lock(&dcphy_hw->mutex);
|
||||
dcphy_hw->dphy_dev[dcphy_hw->dphy_dev_num] = dphy;
|
||||
dcphy_hw->dphy_dev_num++;
|
||||
mutex_unlock(&dcphy_hw->mutex);
|
||||
dphy->samsung_phy = dcphy_hw;
|
||||
@@ -409,7 +410,7 @@ static int rockchip_csi2_dphy_detach_hw(struct csi2_dphy *dphy, int csi_idx, int
|
||||
return -EINVAL;
|
||||
}
|
||||
mutex_lock(&dcphy_hw->mutex);
|
||||
dcphy_hw->dphy_dev_num--;
|
||||
rockchip_csi2_samsung_phy_remove_dphy_dev(dphy, dcphy_hw);
|
||||
mutex_unlock(&dcphy_hw->mutex);
|
||||
} else {
|
||||
dphy_hw = (struct csi2_dphy_hw *)dphy->phy_hw[index];
|
||||
@@ -419,7 +420,7 @@ static int rockchip_csi2_dphy_detach_hw(struct csi2_dphy *dphy, int csi_idx, int
|
||||
return -EINVAL;
|
||||
}
|
||||
mutex_lock(&dphy_hw->mutex);
|
||||
dphy_hw->dphy_dev_num--;
|
||||
rockchip_csi2_inno_phy_remove_dphy_dev(dphy, dphy_hw);
|
||||
mutex_unlock(&dphy_hw->mutex);
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user